120 in binary = 1111000 (111 1000)
In other bases: hexadecimal 78, octal 170. The binary number has 7 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 120 ÷ 2 | 60 | 0 |
| 60 ÷ 2 | 30 | 0 |
| 30 ÷ 2 | 15 | 0 |
| 15 ÷ 2 | 7 | 1 |
| 7 ÷ 2 | 3 | 1 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 1111000.
| Power of 2 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| Bit | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
Add the powers of 2 where the bit is 1: 64 + 32 + 16 + 8 = 120.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 116 | 1110100 | 74 | 164 |
| 117 | 1110101 | 75 | 165 |
| 118 | 1110110 | 76 | 166 |
| 119 | 1110111 | 77 | 167 |
| 121 | 1111001 | 79 | 171 |
| 122 | 1111010 | 7A | 172 |
| 123 | 1111011 | 7B | 173 |
| 124 | 1111100 | 7C | 174 |