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