onescomplement

noun
UK /wʌnz ˈkɒmplɪmənt/
US /wʌnz ˈkɑːmpləmənt/

A way to flip every 0 to 1 and every 1 to 0 in a computer number.

The ones' complement of 1010 is 0101.


OTHER MEANINGS

2. A method of representing negative numbers by flipping all bits of the positive value.

In ones' complement, negative zero is written as 1111.

3. The result of subtracting each digit of a binary number from one.

The ones' complement of 1100 is 0011.

4. A bitwise operation that reverses every bit in a value.

Applying ones' complement to 0110 gives 1001.