- #1
geft
- 148
- 0
Why is it that when using 2's complement, the result of arithmetic operations differ by two?
11011001 (-39) +
11100111 (-25) =
11000000 (which is -62 in 2's complement, even though it's supposed to be -64)
00110011 (51) +
11101110 (-16) =
00100001 (33, but it's supposed to be 35)
11011001 (-39) +
11100111 (-25) =
11000000 (which is -62 in 2's complement, even though it's supposed to be -64)
00110011 (51) +
11101110 (-16) =
00100001 (33, but it's supposed to be 35)