Advertisements
Advertisements
Question
Find 1’s Complement and 2’s Complement for the following Decimal number.
-135
Sum
Solution
2 | 135 | |
2 | 67 | -1 |
2 | 33 | -1 |
2 | 16 | -1 |
2 | 8 | -0 |
2 | 4 | -0 |
2 | 2 | -0 |
1 | -0 |
13510 = 10000111
1’st complement = 01111000
Add 1 bit = + 1
= 01111001
shaalaa.com
Binary Representation for Signed Numbers
Is there an error in this question or solution?