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