20 in Binary
20 in binary is 1 0100 (10100).
Result 10100.
Binary (base 2)1 0100
Step by step
- Divide by 2 repeatedly and write down the remainders:
Division Quotient Remainder 20 ÷ 2 10 0 10 ÷ 2 5 0 5 ÷ 2 2 1 2 ÷ 2 1 0 1 ÷ 2 0 1 - Read the remainders from bottom to top: 1 0100
| binary (base 2) | 1 0100 |
|---|---|
| octal (base 8) | 24 |
| decimal (base 10) | 20 |
| hexadecimal (base 16) | 14 |
| Bits needed | 5 bits (fits in 1 byte) |
| 8-bit form | 0001 0100 |
| 16-bit form | 0000 0000 0001 0100 |
| 32-bit form | 0000 0000 0000 0000 0000 0000 0001 0100 |
Quick method for 20
Find the powers of 2 that add up to 20: 16 + 4. Put a 1 in those places and 0 elsewhere: 10100.
20 in other forms
- Place values: 16 + 4 = 20
- Hex: 14
- Octal: 24
- 5 bits — fits in one byte
- 2 one-bits (even parity)
- Padded: 0001 0100
- 16-bit: 0000 0000 0001 0100
- One's complement (8-bit): 1110 1011
- Between 24 = 16 and 25 = 32
- −20 in 8-bit two's complement: 1110 1100
- ASCII: DC4 — ASCII table
Going back: binary to decimal.
More numbers in binary
20 in binary: questions
What is 20 in binary?
10100.
What is 20 in hex?
14.
How many bits is 20?
5.