One method is to try what powers of 2 you can add up to give the decimal number. For example, 20 in decimal: The next-lower power of 2 is 16; the following powers of two are 8, 4, 2, 1. After subtracting 16, you see how often you can fit the next power-of-two (8); the answer is zero. The next power-of-two (4) fits once. Since nothing is left over, the next two powers-of-two (2 and 1) fit zero times. In summary, you have 1x16, 0x8, 1x4, 0x2, 0x1, which in binary reads 10100.
Chat with our AI personalities
Every decimal number can be represented by a binary number - and conversely.
Decimal 11 = binary 1011
There is no decimal number for the binary number 13 because 13 cannot be a binary number.
The binary equivalent of the decimal number 63 is 111111.
Expressed in decimal, the binary number 111111010 represents 506.