Digital Electronics - Digital Arithmetic Operations and Circuits - Discussion

Discussion Forum : Digital Arithmetic Operations and Circuits - General Questions (Q.No. 17)
17.

Convert each of the decimal numbers to 8-bit two's-complement form and then perform subtraction by taking the two's-complement and adding.

0001  0011
0000  1110
0010  1110
1110  0000
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
4 comments Page 1 of 1.

Amey said:   1 decade ago
18-4 = 14 and its (1110) decimal is 14.

Nilesh said:   1 decade ago
@ Rameshwari.

The given answer is right because convert 18 and 4 in 8 bit that means 18 = 0001 0010.

4 = 0000 0100.

Now convert 4 into 2's complement i.e 1111 1011.

+ 1.
-----------.
1111 1100.

Now add this by 18.

0001 0010.
+1111 1100.
-------------.
1 0000 1110.

Neglect carry hence we got the answer.

Rameshwari said:   1 decade ago
Still dear 2's compliment of 4 is 1100.

18 should write as 00011000 in 8 bit format .
Addition of both result 0010 0100.

If 18 write as 16,8,4,2,1 format then it should be 00010010.
Addition results 00011110.

So just want justification of ans which correct by your means.

Tanu Bhardwaj said:   1 decade ago
Covert 4 into binary number, take the 2's complement of that number and add it with binary value of 18 and as per the rules, discard carry.

Post your comments here:

Your comments will be displayed after verification.