238 in binary = 11101110 (1110 1110)
In other bases: hexadecimal EE, octal 356. The binary number has 8 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 238 ÷ 2 | 119 | 0 |
| 119 ÷ 2 | 59 | 1 |
| 59 ÷ 2 | 29 | 1 |
| 29 ÷ 2 | 14 | 1 |
| 14 ÷ 2 | 7 | 0 |
| 7 ÷ 2 | 3 | 1 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 11101110.
| Power of 2 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Bit | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 |
Add the powers of 2 where the bit is 1: 128 + 64 + 32 + 8 + 4 + 2 = 238.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 234 | 11101010 | EA | 352 |
| 235 | 11101011 | EB | 353 |
| 236 | 11101100 | EC | 354 |
| 237 | 11101101 | ED | 355 |
| 239 | 11101111 | EF | 357 |
| 240 | 11110000 | F0 | 360 |
| 241 | 11110001 | F1 | 361 |
| 242 | 11110010 | F2 | 362 |