3 ms·
Sign-magnitude for the significand, and offset-binary for the exponent. The reason for this odd combination is probably historical.
by userbinator 8y ago
Sign-magnitude for the significand, and offset-binary for the exponent. The reason for this odd combination is probably historical.
- p1mrx 8y agoIt doesn't seem odd to me. When describing things in nature, (+x, -x) tend to have more symmetry than (x, 1/x).
- akrasuski1 8y agoIt's done so that the bits will compare the same way whether treated as float or int. (modulo NaNs and stuff)
- exDM69 8y agoIt's also practical for hw implementation and has other nice qualities. E.g. comparisons and sorting are easy. Radix sort works for floating point (with some bit magic). Terms and conditions may apply (oddities w.r.t. INF, Nan, etc).