The $UNFLOAT function converts a floating-point number from the standard IBM floating point format to the corresponding character string representation. 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 Mapping and precision adjustment.
The format of the $UNFLOAT function is:
where number can be either four bytes for a single-precision floating-point number or eight bytes for a double-precision floating-point number.
$UNFLOAT converts floating-point numbers from the internal form used by Model 204 for storage efficiency to a printable string. $UNFLOAT also allows the manipulation of these numbers by User Language.
For example, the result of the expression:
is the string 1.234. If the string argument is omitted or invalid, a null string is returned.