314.159 = (314.159, 0) = (0.314159, 3) = (314159, -3)
The first number is the mantissa and the second is the exponent.
1010.1011 = (1010.1011, 0) = (0.10101011, 00000100 (4) ) = (10101011, 11111100 (-4) )
The first number is the mantissa and the second is the exponent.
S EEEEEEEE MMMMMMMMMMMMMMMMMMMMMMM 0 1 8 9 31
S EEEEEEEEEEE FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 0 1 11 12 63
Here is a nice webpage where you can construct floating point representations: click here
When you explore the above webpage, you must know that there are 2 things that are strange in the IEEE float representation
So if the mantissa bits in a single precision representation are 01010101010101010101010, the actual mantissa bits are 1.01010101010101010101010 (and the mantissa is between 1.0 and 2.0)
The single precision exponent uses the "excess 127" encoding which uses 01111111 to represent 0:
Bit pattern: 01111100 01111101 01111110 01111111 10000000 10000001 10000010 ----+----------+----------+----------+----------+----------+----------+- -3 -2 -1 0 1 2 3 Value represented: