Professional Documents
Culture Documents
Number Systems 2
Number Systems 2
000000
It drives 1 mile forwards:
000001
999999
So -1 is represented as 999999.
This is 10’s complement representation.
Don’t want separate add and subtract
circuits.
If negative numbers are represented as
complements, subtraction isn’t needed.
-1 999999
+ +2 + 000002
+1 000001
Normal method: even though Using complement: the
the operation is +, one value is operation is +, and it’s done by
-ve, so would normally have to addition
subtract
To subtract a number, take its
complement and add it:
+2 000002
- +1 + 999999
+1 000001
Both values are +ve, but we’re Using a complement, the subtraction
subtracting them so, again, would is instead done by addition
normally have to subtract
0111 (710)
- 0011 (310)
Subtracting, so take
complement of
second value and
0111 (710)
then add it
+ 1101 (-310)
Ignore final carry
out when using
0100 (410)
complements
0100 (410)
- 0111 (710)
Subtracting, so
take
0100 (410)
complement of
second value
and then add it
+ 1001 (-710)
1101
Result is -ve so complement it
to obtain its value
0011 (310)
1101 (-310)
0100 (410)
- 1110 (-210)
Doesn’t matter
that second
value is -ve
already: use
0100 (410)
same procedure
+ 0010 (210)
0110 (610)
Questions
01001010
- 00011101
00010011
- 10111001
Summary