Digital Electronics - Digital Arithmetic Operations and Circuits - Discussion
Discussion Forum : Digital Arithmetic Operations and Circuits - General Questions (Q.No. 3)
3.
Perform subtraction on each of the following binary numbers by taking the two's-complement of the number being subtracted and then adding it to the first number.
01001 01100
00011 00111
01001 01100
00011 00111
Discussion:
4 comments Page 1 of 1.
Shiv babu kushwaha said:
1 decade ago
When we are subtracting any binary no using 2's compliment attention on it.
Take binary no, which we want to subtract.
Ex. A-B = (110011)-(011011).
Take B = 011011.
Find out 2's compliment of B.
First find 1's compliment as convert it as '1' becomes 0 and '0' becomes 1.
1's compliment is B = 100100.
Add 1 on LSB with 1's compliment.
2's compliment is B' = 100100.
+1.
B' = 100101.
Then A+B' = 110011+100101.
= 011000 this is our answer.
Take binary no, which we want to subtract.
Ex. A-B = (110011)-(011011).
Take B = 011011.
Find out 2's compliment of B.
First find 1's compliment as convert it as '1' becomes 0 and '0' becomes 1.
1's compliment is B = 100100.
Add 1 on LSB with 1's compliment.
2's compliment is B' = 100100.
+1.
B' = 100101.
Then A+B' = 110011+100101.
= 011000 this is our answer.
KIRAN V said:
5 years ago
Given:
01001 ->01001 -> 01001.
00011-> 1's Complement 11100.
And 2's Complement -> 11101.
Add Both the Numbers i.e 100110.
Ignore the MSB then we will get -> 00110.
Similarly,
01100 ->01100-> 01100.
00111 -> 1's Complement 11000
And 2's Complement ->11001
Add Both the Numbers i.e 100101.
And finally, we get -> 00101.
01001 ->01001 -> 01001.
00011-> 1's Complement 11100.
And 2's Complement -> 11101.
Add Both the Numbers i.e 100110.
Ignore the MSB then we will get -> 00110.
Similarly,
01100 ->01100-> 01100.
00111 -> 1's Complement 11000
And 2's Complement ->11001
Add Both the Numbers i.e 100101.
And finally, we get -> 00101.
Pavani said:
1 decade ago
Take given data in the form of a, b then
BCD subtraction= a+(9'scomplement of b) we get ans >9 then add 6 to the ans after msb is 1 that carry is added to the ans
Given a=01001,b=00011
a+b=0110+1001=1111>9
1111+0110=1101
0101+1=00110
BCD subtraction= a+(9'scomplement of b) we get ans >9 then add 6 to the ans after msb is 1 that carry is added to the ans
Given a=01001,b=00011
a+b=0110+1001=1111>9
1111+0110=1101
0101+1=00110
Bala said:
1 decade ago
Given:
1) 011001.
00011-->2's complement =11101. Add with 011001 we will get 00110.
2) 01100.
00111--->2's complement =11001. Add with 01100 we will get 00101.
So answer is B 00110 00101.
1) 011001.
00011-->2's complement =11101. Add with 011001 we will get 00110.
2) 01100.
00111--->2's complement =11001. Add with 01100 we will get 00101.
So answer is B 00110 00101.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers