Non-standard positional numeral systems here designates
numeral system
A numeral system is a writing system for expressing numbers; that is, a mathematical notation for representing numbers of a given set, using digits or other symbols in a consistent manner.
The same sequence of symbols may represent differe ...
s that may loosely be described as
positional systems, but that do not entirely comply with the following description of standard positional systems:
:In a standard positional numeral system, the
base ''b'' is a positive integer, and ''b'' different
numerals are used to represent all
non-negative
In mathematics, the sign of a real number is its property of being either positive, negative, or 0. Depending on local conventions, zero may be considered as having its own unique sign, having no sign, or having both positive and negative sign. ...
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s. The standard set of numerals contains the ''b'' values 0, 1, 2, etc., up to ''b'' − 1, but the value is weighted according to the position of the
digit in a number. The value of a digit string like ''pqrs'' in base ''b'' is given by the polynomial form
::
.
:The numbers written in superscript represent the
powers of the base used.
:For instance, in
hexadecimal
Hexadecimal (also known as base-16 or simply hex) is a Numeral system#Positional systems in detail, positional numeral system that represents numbers using a radix (base) of sixteen. Unlike the decimal system representing numbers using ten symbo ...
(''b'' = 16), using the numerals A for 10, B for 11 etc., the digit string 7A3F means
::
,
:which written in our normal decimal notation is 31295.
:Upon introducing a
radix point
alt=Four types of separating decimals: a) 1,234.56. b) 1.234,56. c) 1'234,56. d) ١٬٢٣٤٫٥٦., Both a full_stop.html" ;"title="comma and a full stop">comma and a full stop (or period) are generally accepted decimal separators for interna ...
"." and a
minus sign
The plus sign () and the minus sign () are mathematical symbols used to denote positive and negative functions, respectively. In addition, the symbol represents the operation of addition, which results in a sum, while the symbol represent ...
"−",
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s can be represented up to arbitrary accuracy.
This article summarizes facts on some non-standard positional numeral systems. In most cases, the polynomial form in the description of standard systems still applies.
Some historical numeral systems may be described as non-standard positional numeral systems. E.g., the
sexagesimal
Sexagesimal, also known as base 60, is a numeral system with 60 (number), sixty as its radix, base. It originated with the ancient Sumerians in the 3rd millennium BC, was passed down to the ancient Babylonians, and is still used—in a modified fo ...
Babylonian notation and the Chinese
rod numerals
Counting rods (ç) are small bars, typically 3–14 cm (1" to 6") long, that were used by mathematicians for calculation in ancient East Asia. They are placed either horizontally or vertically to represent any integer or rational number.
...
, which can be classified as standard systems of base 60 and 10, respectively, counting the space representing zero as a numeral, can also be classified as non-standard systems, more specifically, mixed-base systems with unary components, considering the primitive repeated
glyph
A glyph ( ) is any kind of purposeful mark. In typography, a glyph is "the specific shape, design, or representation of a character". It is a particular graphical representation, in a particular typeface, of an element of written language. A ...
s making up the numerals.
However, most of the non-standard systems listed below have never been intended for general use, but were devised by mathematicians or engineers for special academic or technical use.
Bijective numeration systems
A
bijective numeral system with base ''b'' uses ''b'' different numerals to represent all non-negative integers. However, the numerals have values 1, 2, 3, etc. up to and including ''b'', whereas zero is represented by an empty digit string. For example, it is possible to have
decimal without a zero.
Base one (unary numeral system)
Unary is the bijective numeral system with base ''b'' = 1. In unary, one numeral is used to represent all positive integers. The value of the digit string ''pqrs'' given by the polynomial form can be simplified into since ''b
n'' = 1 for all ''n''. Non-standard features of this system include:
*The value of a digit does not depend on its position. Thus, one can easily argue that unary is not a ''positional'' system at all.
*Introducing a radix point in this system will not enable representation of non-integer values.
*The single numeral represents the value 1, not the value 0 = ''b'' − 1.
*The value 0 cannot be represented (or is implicitly represented by an empty digit string).
Signed-digit representation
In some systems, while the base is a positive integer, negative digits are allowed.
Non-adjacent form is a particular system where the base is ''b'' = 2. In the
balanced ternary
Balanced ternary is a ternary numeral system (i.e. base 3 with three Numerical digit, digits) that uses a balanced signed-digit representation of the integers in which the digits have the values −1, 0, and 1. This stands in contrast to the stand ...
system, the base is ''b'' = 3, and the numerals have the values −1, 0 and +1 (rather than 0, 1 and 2 as in the standard
ternary system, or 1, 2 and 3 as in the bijective ternary system).
Gray code
The reflected binary code, also known as the Gray code, is closely related to
binary number
A binary number is a number expressed in the Radix, base-2 numeral system or binary numeral system, a method for representing numbers that uses only two symbols for the natural numbers: typically "0" (zero) and "1" (one). A ''binary number'' may ...
s, but some
bits are inverted, depending on the parity of the higher order bits.
Graphical and physical variants
Cistercian numerals are a decimal positional numeral system, but the positions are not aligned as in common decimal notation; instead, they are attached to the top-right, top-left, bottom-right and bottom-left of a vertical stem, respectively, and thus limited to four in number (so only integers from 0 to 9999 can be represented). The system has close similarities to standard positional numeral systems, but may also be compared to e.g.
Greek numerals
Greek numerals, also known as Ionic, Ionian, Milesian, or Alexandrian numerals, is a numeral system, system of writing numbers using the letters of the Greek alphabet. In modern Greece, they are still used for ordinal number (linguistics), ordi ...
, where different sets of symbols (in fact,
Greek letters) are used for the ones, tens, hundreds and thousands, likewise giving an upper limit on the numbers that can be represented.
Similarly, in computers, e.g. the
long integer
In computer science, an integer is a datum of integral data type, a data type that represents some range of mathematical integers. Integral data types may be of different sizes and may or may not be allowed to contain negative values. Integers are ...
format is a standard binary system (apart from the sign bit), but it has a limited number of positions, and the physical locations for the representations of the digits may not be aligned. In an analog
odometer
An odometer or odograph is an instrument used for measuring the distance traveled by a vehicle, such as a bicycle or car. The device may be electronic, mechanical, or a combination of the two (electromechanical). The noun derives from ancient Gr ...
and in an
abacus
An abacus ( abaci or abacuses), also called a counting frame, is a hand-operated calculating tool which was used from ancient times in the ancient Near East, Europe, China, and Russia, until the adoption of the Hindu–Arabic numeral system. A ...
, the decimal digits are aligned but limited in number.
Bases that are not positive integers
A few positional systems have been suggested in which the base ''b'' is not a positive integer.
Negative base
Negative-base systems include ''negabinary'', ''negaternary'' and ''negadecimal'', with bases −2, −3, and −10 respectively; in base −''b'' the number of different numerals used is ''b''. Due to the properties of negative numbers raised to powers, all integers, positive and negative, can be represented without a sign.
Complex base
In a purely imaginary base ''bi'' system, where ''b'' is an integer larger than 1 and ''i'' the
imaginary unit
The imaginary unit or unit imaginary number () is a mathematical constant that is a solution to the quadratic equation Although there is no real number with this property, can be used to extend the real numbers to what are called complex num ...
, the standard set of digits consists of the ''b''
2 numbers from 0 to . It can be generalized to other complex bases, giving rise to the
complex-base systems.
Non-integer base
In non-integer bases, the number of different numerals used clearly cannot be ''b''. Instead, the numerals 0 to
are used. For example,
golden ratio base (''phinary''), uses the 2 different numerals 0 and 1.
Mixed bases
It is sometimes convenient to consider positional numeral systems where the weights associated with the positions do not form a
geometric sequence 1, ''b'', ''b''
2, ''b''
3, etc., starting from the least significant position, as given in the polynomial form. Examples include:
*
Measuring time often uses a mix of base 24 for hours (or base 12 on an analog clock), and
base 60 for minutes and seconds, with each part often written
base 10
The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers (''decimal fractions'') of t ...
, as in 20:15:00 representing twenty hours and fifteen minutes.
* Similarly, giving an
angle
In Euclidean geometry, an angle can refer to a number of concepts relating to the intersection of two straight Line (geometry), lines at a Point (geometry), point. Formally, an angle is a figure lying in a Euclidean plane, plane formed by two R ...
in degrees, minutes and seconds (sometimes with decimals), can be interpreted as a mixed-radix system.
* Non-decimal currencies have been common, e.g. in
Commonwealth countries
The Commonwealth of Nations, often referred to as the British Commonwealth or simply the Commonwealth, is an international association of 56 member states, the vast majority of which are former territories of the British Empire from which i ...
that before
decimalization used
pounds, shillings and pennies.
* The
Mayan numeral system was
base 20, but when applied to the calendar it was a mixed-radix system as one of its positions represented a multiplication by 18 rather than 20, in order to fit a 360-day calendar.
* The
factorial number system is a
mixed-radix system where the weights form a sequence where each weight is an integer multiple of the previous one, and the number of permitted digit values varies accordingly from position to position.
Sequences where each weight is ''not'' an integer multiple of the previous weight may also be used, but then every integer may not have a unique representation. For example,
Fibonacci coding
In mathematics and computing, Fibonacci coding is a universal code which encodes positive integers into binary code words. It is one example of representations of integers based on Fibonacci numbers. Each code word ends with "11" and contains n ...
uses the digits 0 and 1, weighted according to the
Fibonacci sequence
In mathematics, the Fibonacci sequence is a Integer sequence, sequence in which each element is the sum of the two elements that precede it. Numbers that are part of the Fibonacci sequence are known as Fibonacci numbers, commonly denoted . Many w ...
(1, 2, 3, 5, 8, ...); a unique representation of all non-negative integers may be ensured by forbidding consecutive 1s.
Binary-coded decimal (BCD) are mixed base systems where bits (binary digits) are used to express decimal digits. E.g., in 1001 0011, each group of four bits may represent a decimal digit (in this example 9 and 3, so the eight bits combined represent decimal 93). The weights associated with these 8 positions are 80, 40, 20, 10, 8, 4, 2 and 1. Uniqueness is ensured by requiring that, in each group of four bits, if the first bit is 1, the next two must be 00.
Asymmetric numeral systems
Asymmetric numeral systems are systems used in
computer science
Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
where each digit can have different bases, usually non-integer. In these, not only are the bases of a given digit different, they can be also nonuniform and altered in an asymmetric way to encode information more efficiently. They are optimized for chosen non-uniform probability distributions of symbols, using on average approximately
Shannon entropy bits per symbol.
[J. Duda, K. Tahboub, N. J. Gadil, E. J. Delp, ''The use of asymmetric numeral systems as an accurate replacement for Huffman coding'']
Picture Coding Symposium, 2015.
See also
*
List of numeral systems
*
Komornik–Loreti constant
External links
Expansions in non-integer bases: the top order and the tail
References
{{reflist