In 2's complement, negative numbers always have a 1 as the most
significant (leftmost) bit. If you are storing positive numbers in
bits, you can store from 0 to
. In contrast, in 2's complement you can
only store up to
positive numbers, instead going from
-
to
.
As a concrete example of this, take 8 bits.
If you are storing just positive integers, your numbers go from
to
, i.e., 0 to 255.
If you are storing numbers with a 2's complement convention, with 8
bits your numbers go from
to
(a total of 256 numbers represented). Note that
can't be
represented in 8 bits in 2's complement, since the meaning of
, the nominal positive representation of
, is actually
in 2's complement.