8,985 views

2 Answers

Best answer
2 votes
2 votes

For positive numbers; 2’s Complement representation is the binary representation of the given positive number. For negative numbers, 2’s complement representation is the 2’s complement of the binary representation of its absolute value

Hence 2’s complement representation of

  • 42 = 0101010
  • 13 = 01101
  • -42 = 1010110
  • -13 = 10111

Now we do 2’s complement addition and ignore any carry. So, 42 + (-13) = 0101010 + 1110011 we get 0011101 = 29.

For (-42) - (-13) = (-42) + 13 = 1010110 + 0001101 = 1100011 = –29.

(We append 0s before positive and 1s before negative numbers (sign extension) to make the number of bits the same while doing addition)

selected by
0 votes
0 votes

(+42)^10 + (-13)^10

= (101010)^2 + (-1101)^2

= (101010)^2 + (110011)^2

= (1011101)^2

= (11101)^2

= (29)^10...

 

(-42)^10 - (-13)^10

= -42 + (-(-13))

= -42 + 13

= (-101010)^2 + (1101)^2

= (-101010)^2 + (1101)^2

= (010110)^2 + (001101)^2

= (100011)^2 ....

 

There is no carry. Thus the answer is (-11101)^2 = (-29)^10.…

 

Related questions

2 votes
2 votes
1 answer
1
0 votes
0 votes
1 answer
2
ajaysoni1924 asked Mar 31, 2019
3,977 views
The State of the 12 bit Register is 010110010111. What is the Content if it represents.a three decimal digit in BCD.a three Decimal digit in Excess-3a three Decimal Digit...
0 votes
0 votes
0 answers
3
0 votes
0 votes
1 answer
4
ajaysoni1924 asked Mar 31, 2019
3,112 views
Show the bit configuration that represents the decimal number 295 inin binaryin BCDin ASCII