Quaternary numeral system

Quaternary /kwəˈtɜːrnəri/ is a numeral system with four as its base. It uses the digits 0, 1, 2, and 3 to represent any real number. Conversion from binary is straightforward.

Four is the largest number within the subitizing range and one of two numbers that is both a square and a highly composite number (the other being thirty-six), making quaternary a convenient choice for a base at this scale. Despite being twice as large, its radix economy is equal to that of binary. However, it fares no better in the localization of prime numbers (the smallest better base being the primorial base six, senary).

Quaternary shares with all fixed-radix numeral systems many properties, such as the ability to represent any real number with a canonical representation (almost unique) and the characteristics of the representations of rational numbers and irrational numbers. See decimal and binary for a discussion of these properties.


Developed by StudentB