The decimal complement of the number 1 is 8. You can find the complement of any digit by subtracting it from the largest single digit value in the base that you're working in.
Chat with our AI personalities
The 1's complement is formed by inverting every binary digit (bit) of the number - if it is a 0 it becomes a 1, otherwise it is a 1 and becomes a 0. If 10 is in base 2, then its 1's compliment is 01 or just 1. If 10 is in base 10, then in binary it is 1010 and its 1's complement is 0101 = 5 in decimal. However, if more bits are being used to store it, there would be leading 0s that get inverted to 1s and so the resultant number is different; examples: 8 bits (a byte): decimal 10 = 0000 1010 → 1111 0101 = 245 in decimal 16 bits: decimal 10 = 0000 0000 0000 1010 → 1111 1111 1111 0101 = 65525 Next, if 2s complement is being used to represent negative numbers, the binary 1111 0101 represents decimal -11; similarly 1111 1111 1111 0101 represents decimal -11.
26 decimal is 11010 binary. Its ones complement (in 5 bits) is 00101, which is 5 decimal. In 16 bits, its ones complement is 1111111111100101 which is -27 when interpreted as a signed decimal, and 65509 as an unsigned decimal.
A self complementing code is one thats 9's complement in decimal is the 1's complement in binary.Ex: The 9's complement of 7 is 2 in decimal. In 2421 code, and .
If you refer to 1 Shilling and 10 Pence (1s 10d or 1/10) in predecimal currency, it converted to 9.16 Pence in decimal currency.
10