ones complement
ones complement
...000...00011 = +3000...00010 = +2000...00001 = +1000...00000 = +0111...11111 = -0111...11110 = -1111...11101 = -2111...11100 = -3...
Naive logic for ones complement addition might easily concludethat -0 + 1 = +0.
The twos complement avoids this by using all ones torepresent -1.