SerializeHexReal (FUN)ΒΆ
FUNCTION SerializeHexReal : STRING(32)
Converts a floating point number to the format
F16#{Mantissa}H{Exponent}where both mantissa and exponent are hexadecimal numerals,
such that liM * 2^iE = {Mantissa} * 16^{Exponent}.
Note
If liM is zero, {Exponent} is set to 0, regardless of the value of iE.
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