single-precision format:
e | Value | Type | |
255 | none | none | Infinity or NaN |
254 | 127 | normalized | |
2 | -125 | normalized | |
1 | -126 | normalized | |
0 | -126 | denormalized |
sign | exponent | fraction | value |
0 | 11111111 | xxxxxxxxxxxxxxxxxxxxxxx | or NaN |
0 | 00000000 | 00000000000000000000000 | 0 |
0 | 00000001 | 00000000000000000000000 | |
0 | 00000000 | 10000000000000000000000 | |
0 | 00000000 | 00000000000000000000001 | |
1 | 11111110 | 10000000000000000000000 | |
1 | 01111111 | 01000000000000000000000 | -1.25 |
0 | 10000000 | 11000000000000000000000 | 3.0 |