Electronics - Arithmetic Operations and Circuits - Discussion
Discussion Forum : Arithmetic Operations and Circuits - General Questions (Q.No. 4)
4.
The two's complement system is to be used to add the signed numbers 11110010 and 11110011. Determine, in decimal, the sign and value of each number and their sum.
Discussion:
2 comments Page 1 of 1.
Rohini said:
1 decade ago
First number:11110010
Here first MSB(Most Significant Bit)is 1. So the number is negative number.
1's complement of first number:00001101
2's complement of first number:00001110
Decimal number corespond to 00001110 is 14. here the number is negative. so -14.
In the same way find second number that is -13 so the sum is -27
Here first MSB(Most Significant Bit)is 1. So the number is negative number.
1's complement of first number:00001101
2's complement of first number:00001110
Decimal number corespond to 00001110 is 14. here the number is negative. so -14.
In the same way find second number that is -13 so the sum is -27
Jai said:
1 decade ago
11110010
most significant bit is negative . so 1st bit from left is coresponds to -128. and remaining bits value is same 64,32,16,0,0,2,0.adding all decimal number corresponding to these bits (-128+64+32+16+0+0+2+0=-14)
similarly for 11110011.
most significant bit is negative . so 1st bit from left is coresponds to -128. and remaining bits value is same 64,32,16,0,0,2,0.adding all decimal number corresponding to these bits (-128+64+32+16+0+0+2+0=-14)
similarly for 11110011.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers