|
|
Single-precision floating point numbers have the following format:
31 | 30 | 23 | 22 | 0 |
---|---|---|---|---|
SIGN | EXPONENT | FRACTION | ||
^ | ||||
binary point |
Field | Position | Full name |
---|---|---|
sign | 31 | sign bit (0 == positive, 1 == negative) |
exponent | 30-23 | exponent (biased by 127) |
fraction | 22-0 | fraction (bits to right of binary point) |