3 ms·
So do floats if you don't care about NaN
by immibis 1y ago
So do floats if you don't care about NaN
- tomsmeding 1y agoThey do not; if you sort as unsigned ints then negative floats sort above positive ones, and if you sort as signed ints then the negative range is reversed. IEEE floats are sign-magnitude, not twos-complement.