Representation of 500.0 in IEEE64 Format

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.

Listing: Representation of Decimal 500.0 in IEEE64
  = 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.

Listing: Representation of Decimal -500.0 in IEEE64
  = 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)
Note: The IEEE formats recognize several special bit patterns for special values. The number 0 (zero) is encoded by the bit pattern consisting of zero bits only. Other special values such as Not a Number, infinity, -0 (minus zero) and denormalized numbers exist. Refer to the IEEE standard documentation for details.