Binary addition and subtraction

223 Views Asked by At

Assuming the sign-magnitude representation of binary numbers, what is the result of the -6+29?!

-6   ->    100110
29   ->    011101

The decimal result is 23 and there is no overflow for that. However, the binary addition shows 000011 with a 1 as carry bit. Why?

1

There are 1 best solutions below

1
On

Straightforward binary addition only works for twos-complement representation. Sign-magnitude represenation is more complicated, which is why nobody uses it.