Advertisements
Advertisements
Question
Find 1’s Complement and 2’s Complement for the following Decimal number.
-98
Sum
Solution
2 | 98 | |
2 | 49 | -0 |
2 | 24 | -1 |
2 | 12 | -0 |
2 | 6 | -0 |
2 | 3 | -0 |
1 | -1 |
9810 = 01100010
8 bit format = 01100010
1’s complement = 10011101
Add 1 bit = + 1
= 10011110
shaalaa.com
Binary Representation for Signed Numbers
Is there an error in this question or solution?