Ones’ Complement definition
The ones’ complement of a fixed-width binary word is obtained by changing every 0 to 1 and every 1 to 0.
Ones’ Complement in a picture
How it works
In the ones’ complement signed system, a negative integer is represented by inverting every bit of the positive representation of its magnitude. For n bits the range is −(2ⁿ⁻¹ − 1) through +(2ⁿ⁻¹ − 1), and zero has two representations.
Worked examples
Find the complement of 0101.
Flip the digits to get 1010.
Encode −6 in four-bit ones’ complement.
Invert +6, written 0110, to get 1001.
What are the two zero encodings with four bits?
0000 and 1111.
Common mistake
Use the fixed width and flip all bits, including leading zeros. Adding 1 after the flip is the usual two’s complement negation procedure.
Quick check
What is the range with four bits?
Show answer
−7 through +7.
What happens if you complement twice?
Show answer
You recover the original word.
Sources
Flashcard
Ones’ Complement
Reveal the definition
The ones’ complement of a fixed-width binary word is obtained by changing every 0 to 1 and every 1 to 0.
Effortless Math. “Ones’ Complement.” Math Dictionary.



