- #1
chris2
- 3
- 0
Hi,
I'm reading Computer Science Illuminated and on page 62 it discusses two's complement. A problem they show (on the same page) is:
-(2) = 28 - 2 = 128 - 2 = -126
I have stared at this and reread what is before and after it. I just don't understand why it's negative 126. It's not a misprint because the next page continues to use it for other ways to use two's complement.
Thanks for any advice.
I'm reading Computer Science Illuminated and on page 62 it discusses two's complement. A problem they show (on the same page) is:
-(2) = 28 - 2 = 128 - 2 = -126
I have stared at this and reread what is before and after it. I just don't understand why it's negative 126. It's not a misprint because the next page continues to use it for other ways to use two's complement.
Thanks for any advice.