$Float

From m204wiki
(Redirected from $FLOAT)
Jump to navigation Jump to search

The $FLOAT function assigns a 4-byte floating point number to a 4-byte string, without any conversion. This function is intended for use in writing a floating point value to a USE data set. The $FLOAT function takes one argument containing a numeric value. If the argument is omitted, a value of 0 is returned.

Model 204 maintains 15 significant decimal digits of precision for 8-byte floating-point numbers and 6 significant digits of precision for 4-byte floating-point numbers. For an expanded discussion of rounding numbers, please refer to the section Mapping and precision adjustment.

Note: Technical Support does not recommend using $FLOAT in new applications, although this function is supported for compatibility reasons.