Two's Complement
The number 25 is represented in 8 bits (byte) as
00011001
To represent -25, first invert all of the bits
11100110
then add 1
11100111
Note that the sign bit reversed, indicating the number is negative
Previous slide
Next slide
Back to first slide
View graphic version