159 in binary = 10011111 (1001 1111)
In other bases: hexadecimal 9F, octal 237. The binary number has 8 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 159 ÷ 2 | 79 | 1 |
| 79 ÷ 2 | 39 | 1 |
| 39 ÷ 2 | 19 | 1 |
| 19 ÷ 2 | 9 | 1 |
| 9 ÷ 2 | 4 | 1 |
| 4 ÷ 2 | 2 | 0 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 10011111.
| Power of 2 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Bit | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 |
Add the powers of 2 where the bit is 1: 128 + 16 + 8 + 4 + 2 + 1 = 159.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 155 | 10011011 | 9B | 233 |
| 156 | 10011100 | 9C | 234 |
| 157 | 10011101 | 9D | 235 |
| 158 | 10011110 | 9E | 236 |
| 160 | 10100000 | A0 | 240 |
| 161 | 10100001 | A1 | 241 |
| 162 | 10100010 | A2 | 242 |
| 163 | 10100011 | A3 | 243 |