Comparison of Signed Number Representations in Computers

6 gurjeet 1 9/8/2025, 9:40:37 PM en.wikipedia.org ↗

Comments (1)

karmakaze · 9h ago
The excess-(2N−1) offset binary representation has the useful property where storing a sequence of them in memory, MSB-first means you can lexographically process the bytes opaquely and it results in ordering by their values. MySQL uses this (2's complement with inverted sign) for indexing or sorting. You can see this in the hex value displays in deadlock logs.