3 ms·
> 1 bit sign (1= non-negative, 0= negative) First time I ever saw a number where the leading sign bit has to be set to 1 to indicate non-negative.
by josefx 6y ago
> 1 bit sign (1= non-negative, 0= negative)
First time I ever saw a number where the leading sign bit has to be set to 1 to indicate non-negative.
- jnwatson 6y agoSorts better that way.
- karmakaze 6y agoIt would binary sort weird with negatives < 0 < positives but would put the largest magnitude negative closest to 0. Also not Offset binary which uses 0111 for -1 rather than MySQL's 0001.
- js2 6y agohttps://en.wikipedia.org/wiki/Offset_binary https://en.wikipedia.org/wiki/Offset_binary