Ones Complement Representation
Ones complement is another way to represent signed integers.To encode a negative number, get the binary representation of its magnitude, then COMPLEMENT each bit. Complementing each bit mean that 1s are replaced with 0s, 0s are replaced with 1s.
What is -5 in Ones Complement, 8 bits?
The magnitude 5 in 8-bits is % 00000101 = $ 05
Now complement each bit: % 11111010 = $FA$FA is the 8-bit, ones complement number of -5.NOTE: positive numbers in 1s complement are simply their binary representation.