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