Definition of number base or radix
In a positional numeral system, the base or radix (Latin word for "root") is the number of unique digits, including the digit zero, used to represent numbers. For example, for the decimal/denary system (the most common system in use today) the radix (base number) is ten, because it uses the ten digits from 0 through 9.
In any standard positional numeral system, a number is conventionally written as (x)y with x as the string of digits and y as its base, although for base ten the subscript is usually assumed (and omitted, together with the pair of parentheses), as it is the most common way to express value. For example, (100)10 is equivalent to 100 (the decimal system is implied in the latter) and represents the number one hundred, while (100)2 (in the binary system with base 2) represents the number four.
In the system with radix 13, for example, a string of digits such as 398 denotes the (decimal) number 3 × 132 + 9 × 131 + 8 × 130 = 632.
More generally, in a system with radix b (b > 1), a string of digits d1 ... dn denotes the number d1bn−1 + d2bn−2 + ... + dnb0, where 0 ≤ di < b. In contrast to decimal, or radix 10, which has a ones' place, tens' place, hundreds' place, and so on, radix b would have a ones' place, then a b1s' place, a b2s' place, etc.
Commonly used numeral systems include:
- Binary numeral system - Used internally by nearly all computers, is base 2. The two digits are "0" and "1", expressed from switches displaying OFF and ON respectively. Used in most electric counters.
- Octal system - Used occasionally in computing. The eight digits are "0" - "7" and represent 3 bits (23).
- Decimal system - The most used system of numbers in the world, is used in arithmetic. Its ten digits are "0" - "9". Used in most mechanical counters.
- Duodecimal (dozenal) system - Sometimes advocated due to divisibility by 2, 3, 4, and 6. It was traditionally used as part of quantities expressed in dozens and grosses.
- Hexadecimal system - Often used in computing as a more compact representation of binary (1 hex digit per 4 bits). The sixteen digits are "0" - "9" followed by "A" - "F" or "a" - "f".
- Vigesimal system - Traditional numeral system in several cultures, still used by some for counting.