4,012 views
0 votes
0 votes
What is the difference between 2’s complement and 2’s complement representation of a number? Please can you do 2’s complement of (43) and (-43) and also represent 43 and (-43) in two’s complement form. Also, write binary of 43 and (-43).

1 Answer

6 votes
6 votes

For Unsigned numbers → Normal binary form = Sign Magnitude = 1’s complement form = 2’s comp form.all are same.

So, for unsigned numbers you don’t need to specify in which representation to use to represent a number.

But for signed number you need to specify, “represent -43 in 2’s complement form “ like this.

8 bit Binary of 43 → 00101011. 43 is an unsigned number, so you can think it as represented in 1’s complement form or 2’s complement form or Sign Magnitude form. Because for Unsigned numbers all the representations are same.

2’s complement representation of +43 = 00101011 (Normal Binary)

2’s complement representation of -43 = 11010101 = 2’s complement of 43

2’s complement of -43 = 00101011 = Binary representation of 43.

2’s complement of 43 = 11010101 

Note: 2’s complement representation of -X =  2’s complement of X.

--------------------------------------------------------------------------------------------------------------------------------------------------------------

//  If you have any doubt please let me know .

 

Related questions

3 votes
3 votes
1 answer
1
1 votes
1 votes
1 answer
2
0 votes
0 votes
0 answers
3
saptarshiDey asked Nov 28, 2018
1,079 views
If N = 670 in base 9 system. Then find the radix complement of N.