Number 18 in binary code
Decimal to Binary Converter
What is number 18 in binary?
Answer
Decimal number 18 in binary is
10010
5 bits: 2 ones, 3 zeros · as a byte: 0001 0010
Base 2, unsigned: each place is worth a power of 2 — from 2⁴ = 16 on the left to 2⁰ = 1 on the right.
| division | quotient | remainder |
|---|---|---|
| 18 ÷ 2 | 9 | 0 |
| 9 ÷ 2 | 4 | 1 |
| 4 ÷ 2 | 2 | 0 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
↑ Read the remainders from bottom to top: 10010
Related Calculations
See Also
- Binary to Decimal Converter - Binary numbers to Decimal conversion
- Hex to Decimal - Hexadecimal numbers to Decimal conversion
- Decimal to hex converter - Decimal numbers to Hexadecimal conversion
Dec to Bin Conversion Table
FAQ
What is number 18 in binary?
Decimal number 18 in binary is 10010
How many ones and zeros are in 18 in binary?
10010 has 5 bits: 2 ones and 3 zeros. As a byte it is written 0001 0010.
What is 18 in hexadecimal?
18 in hexadecimal is 12 (0x12): each hex digit stands for 4 bits — 0001 = 1, 0010 = 2.