To the right is a table of 4-bit binary numbers in 2's complement notation.
Comparing these values with our 1's
complement table, we see that both representations use the most
significant bit to represent the sign. We also notice that we only have
one way to represent 0 in 2's complement. This is an advantage because
it simplifies representation of signed numbers. As with 1's complement,
only negative values need to be complemented in 2's complement. The
positive values are the same as the normal binary numbers. You should
verify for yourself that the negative values are correct by using the
steps below to produce this table.
|
|
Binary
0111
0110
0101
0100
0011
0010
0001
0000
1111
1110
1101
1100
1011
1010
1001
1000
|
Decimal
+7
+6
+5
+4
+3
+2
+1
+0
-1
-2
-3
-4
-5
-6
-7
-8
|
|