Examples of One’s Complement of a Binary Number
Here are examples of One’s complement of a binary number for better understanding :
1. Evaluate the 1’s complement of the 11010011.
Simply invert each bit of the number, and hence the 1’s complement for the above binary number is – 00101100
2. Evaluate the 1’s complement for the fractional binary number 00111.001.
The 1’s complement representation of the fractional binary number will be 11000.110.
3. Evaluate 1’s complement of all 4-bit binary numbers
Number | Binary Representation | 1’s complement |
---|---|---|
0 | 0000 | 1111 |
1 | 0001 | 1110 |
2 | 0010 | 1101 |
3 | 0011 | 1100 |
4 | 0100 | 1011 |
5 | 0101 | 1010 |
6 | 0110 | 1001 |
7 | 0111 | 1000 |
8 | 1000 | 0111 |
9 | 1001 | 0110 |
10 | 1010 | 0101 |
11 | 1011 | 0100 |
12 | 1100 | 0011 |
13 | 1101 | 0010 |
14 | 1110 | 0001 |
15 | 1111 | 0000 |
One’s Complement
In digital electronics, the binary system is one of the most common number representation techniques. As its name suggest binary number system deals with only two number 0 and 1, this can be used by any device which is operating in two states. The binary number system has two complements 1’s and 2’s complement.
Table of Content
- One’s Complement
- How to Find One’s Complement ?
- Examples
- Representation in Signed Magnitude
- Uses of 1’s Complement