155 in binary = 10011011 (1001 1011)
In other bases: hexadecimal 9B, octal 233. The binary number has 8 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 155 ÷ 2 | 77 | 1 |
| 77 ÷ 2 | 38 | 1 |
| 38 ÷ 2 | 19 | 0 |
| 19 ÷ 2 | 9 | 1 |
| 9 ÷ 2 | 4 | 1 |
| 4 ÷ 2 | 2 | 0 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 10011011.
| Power of 2 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Bit | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 1 |
Add the powers of 2 where the bit is 1: 128 + 16 + 8 + 2 + 1 = 155.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 151 | 10010111 | 97 | 227 |
| 152 | 10011000 | 98 | 230 |
| 153 | 10011001 | 99 | 231 |
| 154 | 10011010 | 9A | 232 |
| 156 | 10011100 | 9C | 234 |
| 157 | 10011101 | 9D | 235 |
| 158 | 10011110 | 9E | 236 |
| 159 | 10011111 | 9F | 237 |