Table Of Contents

Mantissa & Exponent (G Dataflow)

Last Modified: August 28, 2017

Returns the mantissa and exponent of the input numeric value such that number = mantissa * 2^exponent.

If the input is 0, this node returns 0 for both the mantissa and exponent. Otherwise, 1 | mantissa | < 2 . The exponent is always an integer.

connector_pane_image
datatype_icon

number

An input of any decimal representation.

datatype_icon

mantissa

The mantissa of number. This output is the same decimal representation as number.

If the input is 0, this node returns 0 for both the mantissa and exponent. Otherwise, 1 | mantissa | < 2 .

datatype_icon

exponent

The exponent of number. This output is the same decimal representation as number.

If the input is 0, this node returns 0 for both the mantissa and exponent. The exponent is always an integer.

Rounding Errors

number automatically rounds to the number of significant digits you specify. This rounding can cause incorrect mantissa calculation. The rounding error occurs when every digit through the last significant digit is 9 and the digit after the last significant digit is greater than 5. For example, if number is 31.99999 and you specify 4 significant digits, number rounds to 31.99, which then rounds to 32. As a result, the value of exponent is 4 and the value of mantissa is 2, though the mathematically correct value of mantissa is 1 in this case. The following table gives some examples of number values before and after rounding to 4 significant digits.

Table 1. Examples of number Rounding to 4 Significant Digits
number Before Rounding number After Rounding
31.99 31.99 [no error]
31.888 31.89 [no error]
31.994 31.99 [no error]
31.999 32.00 [error]

Where This Node Can Run:

Desktop OS: Windows

FPGA: DAQExpress does not support FPGA devices

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics