On this page we are going to discuss 1s complement in details with binary logic examples. Binary numbers can also be represented by ‘radix’ and ‘radix -
In binary arithmetic, 1s complement of a binary number N is obtained by the formula below:
(2^n – 1) – N, Where n is the no of bits in binary number N.
Example: Convert binary number 111001101 to 1’s complement.
Method: By following the equation
above, we have N = 111001101, n = 9
Now 2^n = 256. In binary, 100000000