Section 6.4: Converting 2's complement numbers (Frame 3)                     [prev][home][next]

Here's another, a little more interesting one: -32 (again using 8 bits).

Value of +32 in binary                      100000

Pad out to 8 bits                         00100000

Flip the bits                             11011111
Add 1                                           +1
                                          --------
The answer                                11100000