Discussion :: Digital Arithmetic Operations and Circuits - General Questions (Q.No.10)
|Tanu Bhardwaj said: (Oct 10, 2012)|
|When we complement 11110010 for 1's complement, we get 00001101. Then add 1 in 1's complement to get 2's complement.
The decimal of 00001110 is 14. And the sign of the number is "-" because in 11110010, the starting number is "1". So, the number is -14.
Similarly the 2's complement of 2nd number is 00001101, and we get 13 as decimal value. The sign of the number is again negative as we can see "1" as MSB, so the number in decimal is -13.
When we add the 2's complement of both numbers, we get 27 as total decimal value and the sign is negative, because both the numbers were negative.
|Meena said: (Jul 7, 2016)|
|Manoja V. said: (Oct 25, 2017)|
|Sainarendra said: (Apr 5, 2018)|
|Thanks for your detailed explanation @Tanu.|
|Anushka Shivalli said: (Jun 16, 2019)|
|Nice explanation, Thank you @Tanu.|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.