Formula: Binary: divide by 2 repeatedly, read remainders bottom-up
Number bases represent values using different digit sets. Decimal (base-10) uses 0–9, binary (base-2) uses 0–1, hexadecimal (base-16) uses 0–9 and A–F, and octal (base-8) uses 0–7. Binary is fundamental to computing since digital circuits have two states (on/off).
| Decimal | Binary |
|---|---|
| 1 | 1 |
| 8 | 1000 |
| 10 | 1010 |
| 16 | 10000 |
| 42 | 101010 |
| 100 | 1100100 |
| 255 | 11111111 |