104 in binary = 1101000 (110 1000)
In other bases: hexadecimal 68, octal 150. The binary number has 7 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 104 ÷ 2 | 52 | 0 |
| 52 ÷ 2 | 26 | 0 |
| 26 ÷ 2 | 13 | 0 |
| 13 ÷ 2 | 6 | 1 |
| 6 ÷ 2 | 3 | 0 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 1101000.
| Power of 2 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| Bit | 1 | 1 | 0 | 1 | 0 | 0 | 0 |
Add the powers of 2 where the bit is 1: 64 + 32 + 8 = 104.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 100 | 1100100 | 64 | 144 |
| 101 | 1100101 | 65 | 145 |
| 102 | 1100110 | 66 | 146 |
| 103 | 1100111 | 67 | 147 |
| 105 | 1101001 | 69 | 151 |
| 106 | 1101010 | 6A | 152 |
| 107 | 1101011 | 6B | 153 |
| 108 | 1101100 | 6C | 154 |