Hi,
In the book (page 31) two's complement of x is said to be calculated by (2^n)-x. It then goes on to say that to calculate -2 you perform the following operation: (2^4)-2. However, why if x=-2 in this case is it (2^4)-2 and not (2^4)-(-2)? Also, to calculate two's complement where x=2, one would perform the operation: (2^4)-(-2) in order to yield the result 0010.
I am very confused...
Can anyone explain?
Thanks.