Professional Documents
Culture Documents
9's Complement
9's Complement
Class Notes
CLASS 2-2
Complements
Subtraction using complements.
Similarly
1s complement of the binary number N = (2n -1) N = n (1s) N
Example
1s complement of 110100101 is 001011010
which can be obtained by replacing each one by a zero and each
zero by one.
rs complement:
EE200(class 2-2)
1of 5
Example
Answer
9s complement = 685299
10s complement=685300
1s complement is 0010110010
2s complement is 0010110011
1s complement is 011101011
2s complement is 011101100
EE200(class 2-2)
2of 5
2)
If M < N then result is rn (N-M) which is the rs complement
of the result.
Example: Subtract (76425 28321) using 10s complements.
Answer
Then add
Discard
76425
+ 71679
148104
028531
+ 654080
682611
EE200(class 2-2)
3of 5
Answer
Then add
11010011
+ 01110100
Discard
101000111
Then add
Difference
76425
+71678
148103
1
48104
Then add
11010011
+ 01110011
101000110
1
Difference
EE200(class 2-2)
4of 5
101000111
EE200(class 2-2)
5of 5