Binary

Unsigned

Signed magnitude

1’s complement

2’s complement:

Determine overflow:

  • if two same sign add together results in the opposite sign, then overflow happened (ignore carryout)
  • ADD TWO NUMBERS WITH DIFFERENT SIGNS NEVER OVERFLOW

Fixed point in this class is always in 2’s complement