4 in binary
4 in binary is 100. In hexadecimal it is 4 and in octal 4.
4 in binary
Pick any whole number from 1 to 10,000.
How to work it out
- 1
Divide 4 by 2 again and again, writing down the remainder each time, until you reach 0.
- 2
Read the remainders from the bottom up: 100.
- 3
Check by adding powers of 2: 4 = 4.
LaTeX source of the formulas on this page
\[ 4_{10} = 100_{2} \]Dividing 4 by 2
| Number | Division | Remainder |
|---|---|---|
| 4 | 4 ÷ 2 = 2 | 0 |
| 2 | 2 ÷ 2 = 1 | 0 |
| 1 | 1 ÷ 2 = 0 | 1 |
Questions
What is 4 in binary?
100.
What is 4 in hexadecimal?
4.
What is 4 in octal?
4.
How many bits does 4 need?
3 bits.