The exponent in IEEE64 has a fixed offset of 1023 to ensure positive values:
exp (500.0, IEEE64) = 8 + 1023 == 407 (hex) == 10000000111
(bin)
The IEEE64 format is similar to IEEE32 except that more bits are available to represent the exponent and the mantissa. The following listing shows the IEEE64 representation of decimal 500.
= 0 (sign) 10000000111 (exponent) 1111010000000000000000000000000000000000000000000000 (mantissa) (IEEE64 as bin) = 0100 0000 0111 1111 0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 (IEEE64 as bin) = 40 7f 40 00 00 00 00 00 (IEEE64 as hex)
The following listing shows the IEEE64 representation of decimal -500.
= 1 (sign) 10000000111 (exponent) 1111010000000000000000000000000000000000000000000000 (mantissa) (IEEE64 as bin) = 1100 0000 0111 1111 0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 (IEEE64 as bin) = c0 7f 40 00 00 00 00 00 (IEEE64 as hex)