To convert a base 10 (decimal) number to its 32 bit floating point (IEEE754) representation:
To convert a 32 bit floating point number to its decimal equivalent:
1. Convert the hex number into binary
2. Separate the binary number into groups of 1, 8 and 23 bits
3. Calculate the number of places to move the binary point by
a. Converting the 8 bit section into decimal and subtracting 127
4. Move the binary point in the 23 bit section to the right as calculated above beginning at the left with 0.
5. Add a 1 to the left of the 23 bit number
6. Convert left of the point to decimal
7. Convert the part to the right of the binary point to decimal
8. Write – if the first digit was a 1, + if the first digit was a zero
9. Write the integer portion
10.
Write the decimal portion
Examples:
-1330.75 => C4A65800h

![]()


![]()
![]()
![]()







![]()