$Float

From m204wiki
Revision as of 17:44, 21 July 2014 by Mlarocca (talk | contribs) (Mlarocca moved page $FLOAT to $Float: Lower case change)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.