Electrical Engineering ⇒ Topic : 1s Complement
|
Mrityunjoy
| |
1’s complement of a binary number is another binary number obtained by toggling all bits in it, i.e., transforming the 0 bit to 1 and the 1 bit to 0. Examples: Let numbers be stored using 4 bits 1's complement of 7 (0111) is 8 (1000) 1's complement of 12 (1100) is 3 (0011) | |
| |
Sunita
| |
1'S COMPLEMENT To get l's complement of a binary number, each bit of the binary number is subtracted from 1.The 1's complement of 1011 is 0100. In other words, l's complement of a binary number is formed by flipping the bits, i.e., converting Os to 1 and vice versa. | |
| |
!! OOPS Login [Click here] is required for more results / answer