SerializeHexReal (FUN)
FUNCTION SerializeHexReal : STRING(32)
Converts a floating point number to the format
R16#{Mantissa}H{Exponent}where both mantissa and exponent are hexadecimal numerals,
such that liM * 2^iE = {Mantissa} * 16^{Exponent}.
Note
If uE is zero, {Exponent} is set to 0, regardless of the value of uE.
The hexadecimal exponent is computed as floor(iE/4). The hexadecimal mantissa then becomes liM * 2^(iE mod 4).
See also DeSerializeHexReal.
- InOut:
Scope
Name
Type
Comment
Return
SerializeHexRealSTRING(32)Input
liMLINTThe (signed) mantissa
iEINTThe (unbiased) exponent