Twos complement

The standard way to store negative numbers in a fixed row of bits, where the top bit marks the sign and flipping the bits then adding one gives the negative. It lets a number and its negative add to zero with no special case.

Back to the glossary