342 in binary
342 in binary is 101010110. In hexadecimal it is 156 and in octal 526.
342 in binary
Pick any whole number from 1 to 10,000.
How to work it out
- 1
Divide 342 by 2 again and again, writing down the remainder each time, until you reach 0.
- 2
Read the remainders from the bottom up: 101010110.
- 3
Check by adding powers of 2: 256 + 64 + 16 + 4 + 2 = 342.
LaTeX source of the formulas on this page
\[ 342_{10} = 101010110_{2} \]Dividing 342 by 2
| Number | Division | Remainder |
|---|---|---|
| 342 | 342 ÷ 2 = 171 | 0 |
| 171 | 171 ÷ 2 = 85 | 1 |
| 85 | 85 ÷ 2 = 42 | 1 |
| 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 342 in binary?
101010110.
What is 342 in hexadecimal?
156.
What is 342 in octal?
526.
How many bits does 342 need?
9 bits.