1's and 2's Complements

Discussion in 'Programmer's Corner' started by atlantis43, Mar 23, 2015.

  1. atlantis43

    Thread Starter New Member

    Apr 30, 2014
    In a thread from 2009, georacer stated:
    I'm somewhat confused in terms of the definition of complement, which is something like:
    Question: I'm confused by the fact that for base ten, the sum of a number and its complement is 1 + n 0's,
    but there does not seem to be any such equivalent statement that would describe what happens in the 5's complement (for base 10) quoted above: i.e., 5532 + 0023 = 5555. Why not 55555 or any overflow? What fundamental part of this don't I get?
    Last edited: Mar 23, 2015