News for hackers. Stuff that matters.
Re:Signed Integers Are Two’s Complement by userbinator on Thursday May 31, 2018 @12:06AM (#17193867)
Sign-magnitude for the significand, and offset-binary for the exponent. The reason for this odd combination is probably historical.
Re:Signed Integers Are Two’s Complement by akrasuski1 on Thursday May 31, 2018 @12:36AM (#17193989)
It's done so that the bits will compare the same way whether treated as float or int. (modulo NaNs and stuff)
Re:Signed Integers Are Two’s Complement by nhaehnle on Thursday May 31, 2018 @04:54AM (#17194950)
That is only true for non-negative floating point numbers. It's still useful though.

Interestingly, posits as originally proposed do have this property (except for infinity).

Re:Signed Integers Are Two’s Complement by garmaine on Thursday May 31, 2018 @04:05PM (#17199713)
Would have been nice if IEEE stored the complement sign.
Re:Signed Integers Are Two’s Complement by exDM69 on Thursday May 31, 2018 @02:38AM (#17194394)
It'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).
Re:Signed Integers Are Two’s Complement by p1mrx on Thursday May 31, 2018 @12:22AM (#17193929)
It doesn't seem odd to me. When describing things in nature, (+x, -x) tend to have more symmetry than (x, 1/x).