Professional Documents
Culture Documents
B.V.V.L.KALA BHARATHI
Dept of ELECTRICAL AND ELECTRONICS ENGINEERING
Aditya Engineering College(A)
Surampalem.
Aditya Engineering College (A)
TYPES OF COMPLIMENTS :
If R is the base of the number system then that number can have two types
of compliments.
They are
• Radix compliment or R’s compliment
• Diminished Radix compliment or (R-1)’s compliment
For example ,
Binary number system is base 2 system ,so it has two compliments :
2’s compliment and 1’s compliment.
Decimal number system is base 10 system ,so it has two compliments : 10’s
compliment and 9’s compliment.
Digital circuits and logic
8/24/20
design
Aditya Engineering College (A)
Example: find 1’s compliment and 2’s compliment of binary number 10110012
Here N=1011001, n=7(no. of digits)
1’s compliment of 10110012= {(27)10- 1}-1011001
=12710- 10110012 =11111112- 10110012
=01001102
Digital circuits and logic
8/24/20
design
Aditya Engineering College (A)
Contd…
Similarly ,2’s compliment of 10110012= (27)10- 10110012
=12810- 10110012 =100000002-
10110012
=01001112
Short cut method:
For 1’s compliment of binary number: Alter 0’s and 1’s.
i.e., 1’s compliment of 10110012 =01001102
For 2’s compliment of binary number=1’s compliment of binary number+1
i.e., 2’s compliment of 10110012 =01001102 +1= 01001112
Example: find 2’s compliment and 3’s compliment of base 3 number 121 3
Contd…
Similarly ,
3’s compliment of 1213 = (33)10-1213
=2710- 1610 =1110
=1023
Example: find 9’s compliment and 10’s compliment of decimal number 40010
Contd…
Similarly ,
10’s compliment of 40010 = (103)10-40010
=1000- 40010 =60010
THANK YOU