In a positional number system, the value of any digit depends on three parameters: (1) the digit itself, (2) the position/place of the digit within the number, and (3) the base or radix ($r$) of the number system.
A general number with integer and fractional parts is formally expressed as:
$$N_r = (d_n d_{n-1} \dots d_1 d_0 . d_{-1} d_{-2} \dots d_{-m})_r = \sum_{i=-m}^{n} d_i \cdot r^i$$| System | Radix ($r$) | Allowed Symbols | Bit Weight Sequence ($r^3, r^2, r^1, r^0 . r^{-1}$) | Primary Purpose |
|---|---|---|---|---|
| Binary | 2 | $0, 1$ | $8, 4, 2, 1 . 0.5, 0.25$ | Native hardware architecture (transistors) |
| Octal | 8 | $0, 1, 2, 3, 4, 5, 6, 7$ | $512, 64, 8, 1 . 0.125$ | Compact shorthand for 3-bit binary groups |
| Decimal | 10 | $0, 1, 2, 3, 4, 5, 6, 7, 8, 9$ | $1000, 100, 10, 1 . 0.1$ | Human arithmetic and scientific counting |
| Hexadecimal | 16 | $0-9, \text{A}(10), \text{B}(11), \text{C}(12), \text{D}(13), \text{E}(14), \text{F}(15)$ | $4096, 256, 16, 1 . 0.0625$ | Memory address notation, color codes, byte dump |