
A numeral system (or system of numeration) is a
writing system
A writing system is a method of visually representing verbal communication, based on a script and a set of rules regulating its use. While both writing and speech are useful in conveying messages, writing differs in also being a reliable for ...
for expressing numbers; that is, a
mathematical notation
Mathematical notation consists of using symbols for representing operations, unspecified numbers, relations and any other mathematical objects, and assembling them into expressions and formulas. Mathematical notation is widely used in mathe ...
for representing
number
A number is a mathematical object used to count, measure, and label. The original examples are the natural numbers 1, 2, 3, 4, and so forth. Numbers can be represented in language with number words. More universally, individual numbers ...
s of a given set, using
digits or other symbols in a consistent manner.
The same sequence of symbols may represent different numbers in different numeral systems. For example, "11" represents the number ''eleven'' in the
decimal numeral system
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 of the Hindu–Arabic numera ...
(used in common life), the number ''three'' in the
binary numeral system
A binary number is a number expressed in the base-2 numeral system or binary numeral system, a method of mathematical expression which uses only two symbols: typically "0" ( zero) and "1" (one).
The base-2 numeral system is a positional notatio ...
(used in
computers), and the number ''two'' in the
unary numeral system
The unary numeral system is the simplest numeral system to represent natural numbers: to represent a number ''N'', a symbol representing 1 is repeated ''N'' times.
In the unary system, the number 0 (zero) is represented by the empty string, th ...
(e.g. used in
tallying scores).
The number the numeral represents is called its value. Not all number systems can represent all numbers that are considered in the modern days; for example,
Roman numerals have no zero.
Ideally, a numeral system will:
*Represent a useful set of numbers (e.g. all
integer
An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
s, or
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ra ...
s)
*Give every number represented a unique representation (or at least a standard representation)
*Reflect the
algebraic and
arithmetic
Arithmetic () is an elementary part of mathematics that consists of the study of the properties of the traditional operations on numbers—addition, subtraction, multiplication, division, exponentiation, and extraction of roots. In the 19th c ...
structure of the numbers.
For example, the usual
decimal representation
A decimal representation of a non-negative real number is its expression as a sequence of symbols consisting of decimal digits traditionally written with a single separator:
r = b_k b_\ldots b_0.a_1a_2\ldots
Here is the decimal separator, ...
gives every nonzero
natural number
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called '' cardinal ...
a unique representation as a
finite
Finite is the opposite of infinite. It may refer to:
* Finite number (disambiguation)
* Finite set, a set whose cardinality (number of elements) is some natural number
* Finite verb
Traditionally, a finite verb (from la, fīnītus, past partici ...
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is called ...
of
digits, beginning with a non-zero digit.
Numeral systems are sometimes called ''
number system
A number is a mathematical object used to count, measure, and label. The original examples are the natural numbers 1, 2, 3, 4, and so forth. Numbers can be represented in language with number words. More universally, individual numbers ca ...
s'', but that name is ambiguous, as it could refer to different systems of numbers, such as the system of
real number
In mathematics, a real number is a number that can be used to measurement, measure a ''continuous'' one-dimensional quantity such as a distance, time, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small var ...
s, the system of
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s, the system of
''p''-adic numbers, etc. Such systems are, however, not the topic of this article.
History
Main numeral systems
The most commonly used system of numerals is
decimal.
Indian mathematicians are credited with developing the integer version, the
Hindu–Arabic numeral system
The Hindu–Arabic numeral system or Indo-Arabic numeral system Audun HolmeGeometry: Our Cultural Heritage 2000 (also called the Hindu numeral system or Arabic numeral system) is a positional decimal numeral system, and is the most common syste ...
.
Aryabhata
Aryabhata ( ISO: ) or Aryabhata I (476–550 CE) was an Indian mathematician and astronomer of the classical age of Indian mathematics and Indian astronomy. He flourished in the Gupta Era and produced works such as the '' Aryabhatiya'' (whi ...
of
Kusumapura developed the
place-value notation
Positional notation (or place-value notation, or positional numeral system) usually denotes the extension to any base of the Hindu–Arabic numeral system (or decimal system). More generally, a positional system is a numeral system in which the ...
in the 5th century and a century later
Brahmagupta
Brahmagupta ( – ) was an Indian mathematician and astronomer. He is the author of two early works on mathematics and astronomy: the '' Brāhmasphuṭasiddhānta'' (BSS, "correctly established doctrine of Brahma", dated 628), a theoretical tr ...
introduced the symbol for
zero
0 (zero) is a number representing an empty quantity. In place-value notation such as the Hindu–Arabic numeral system, 0 also serves as a placeholder numerical digit, which works by multiplying digits to the left of 0 by the radix, usu ...
. The system slowly spread to other surrounding regions like Arabia due to their commercial and military activities with India.
Middle-Eastern
The Middle East ( ar, الشرق الأوسط, ISO 233: ) is a geopolitical region commonly encompassing Arabian Peninsula, Arabia (including the Arabian Peninsula and Bahrain), Anatolia, Asia Minor (Asian part of Turkey except Hatay Pro ...
mathematicians extended the system to include negative powers of 10 (
fractions
A fraction (from la, fractus, "broken") represents a part of a whole or, more generally, any number of equal parts. When spoken in everyday English, a fraction describes how many parts of a certain size there are, for example, one-half, eight ...
), as recorded in a treatise by
Syrian
Syrians ( ar, سُورِيُّون, ''Sūriyyīn'') are an Eastern Mediterranean ethnic group indigenous to the Levant. They share common Levantine Semitic roots. The cultural and linguistic heritage of the Syrian people is a blend of both indig ...
mathematician
Abu'l-Hasan al-Uqlidisi Abu'l Hasan Ahmad ibn Ibrahim Al-Uqlidisi ( ar, أبو الحسن أحمد بن ابراهيم الإقليدسي) was a Muslim Arab mathematician, who was active in Damascus and Baghdad. He wrote the earliest surviving book on the positional u ...
in 952–953, and the
decimal point
A decimal separator is a symbol used to separate the integer part from the fractional part of a number written in decimal form (e.g., "." in 12.45). Different countries officially designate different symbols for use as the separator. The ch ...
notation was introduced by
Sind ibn Ali, who also wrote the earliest treatise on Arabic numerals. The Hindu-Arabic numeral system then spread to Europe due to merchants trading, and the digits used in Europe are called
Arabic numerals
Arabic numerals are the ten numerical digits: , , , , , , , , and . They are the most commonly used symbols to write decimal numbers. They are also used for writing numbers in other systems such as octal, and for writing identifiers such as ...
, as they learned them from the Arabs.
The simplest numeral system is the
unary numeral system
The unary numeral system is the simplest numeral system to represent natural numbers: to represent a number ''N'', a symbol representing 1 is repeated ''N'' times.
In the unary system, the number 0 (zero) is represented by the empty string, th ...
, in which every
natural number
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called '' cardinal ...
is represented by a corresponding number of symbols. If the symbol is chosen, for example, then the number seven would be represented by .
Tally marks
Tally marks, also called hash marks, are a unary numeral system ( arguably).
They are a form of numeral used for counting. They are most useful in counting or tallying ongoing results, such as the score in a game or sport, as no intermediate ...
represent one such system still in common use. The unary system is only useful for small numbers, although it plays an important role in
theoretical computer science
Theoretical computer science (TCS) is a subset of general computer science and mathematics that focuses on mathematical aspects of computer science such as the theory of computation, lambda calculus, and type theory.
It is difficult to circumsc ...
.
Elias gamma coding
Elias γ code or Elias gamma code is a universal code encoding positive integers developed by Peter Elias. It is used most commonly when coding integers whose upper-bound cannot be determined beforehand.
Encoding
To code a number ''x'' � ...
, which is commonly used in
data compression
In information theory, data compression, source coding, or bit-rate reduction is the process of encoding information using fewer bits than the original representation. Any particular compression is either lossy or lossless. Lossless compressi ...
, expresses arbitrary-sized numbers by using unary to indicate the length of a binary numeral.
The unary notation can be abbreviated by introducing different symbols for certain new values. Very commonly, these values are powers of 10; so for instance, if / stands for one, − for ten and + for 100, then the number 304 can be compactly represented as and the number 123 as without any need for zero. This is called
sign-value notation
A sign-value notation represents numbers by a series of numeric signs that added together equal the number represented. In Roman numerals for example, X means ten and L means fifty. Hence LXXX means eighty (50 + 10 + 10  ...
. The ancient
Egyptian numeral system was of this type, and the
Roman numeral system was a modification of this idea.
More useful still are systems which employ special abbreviations for repetitions of symbols; for example, using the first nine letters of the alphabet for these abbreviations, with A standing for "one occurrence", B "two occurrences", and so on, one could then write C+ D/ for the number 304. This system is used when writing
Chinese numerals
Chinese numerals are words and characters used to denote numbers in Chinese.
Today, speakers of Chinese use three written numeral systems: the system of Arabic numerals used worldwide, and two indigenous systems. The more familiar indigenous s ...
and other East Asian numerals based on Chinese. The number system of the
English language
English is a West Germanic language of the Indo-European language family, with its earliest forms spoken by the inhabitants of early medieval England. It is named after the Angles, one of the ancient Germanic peoples that migrated to t ...
is of this type ("three hundred
ndfour"), as are those of other spoken
language
Language is a structured system of communication. The structure of a language is its grammar and the free components are its vocabulary. Languages are the primary means by which humans communicate, and may be conveyed through a variety of ...
s, regardless of what written systems they have adopted. However, many languages use mixtures of bases, and other features, for instance 79 in French is ''soixante dix-neuf'' () and in Welsh is ''pedwar ar bymtheg a thrigain'' () or (somewhat archaic) ''pedwar ugain namyn un'' (). In English, one could say "four score less one", as in the famous
Gettysburg Address
The Gettysburg Address is a speech that U.S. President Abraham Lincoln delivered during the American Civil War at the dedication of the Soldiers' National Cemetery, now known as Gettysburg National Cemetery, in Gettysburg, Pennsylvania on the ...
representing "87 years ago" as "four score and seven years ago".
More elegant is a ''
positional system'', also known as place-value notation. Again working in base 10, ten different digits 0, ..., 9 are used and the position of a digit is used to signify the power of ten that the digit is to be multiplied with, as in or more precisely . Zero, which is not needed in the other systems, is of crucial importance here, in order to be able to "skip" a power. The Hindu–Arabic numeral system, which originated in India and is now used throughout the world, is a positional base 10 system.
Arithmetic is much easier in positional systems than in the earlier additive ones; furthermore, additive systems need a large number of different symbols for the different powers of 10; a positional system needs only ten different symbols (assuming that it uses base 10).
The positional decimal system is presently universally used in human writing. The base 1000 is also used (albeit not universally), by grouping the digits and considering a sequence of three decimal digits as a single digit. This is the meaning of the common notation 1,000,234,567 used for very large numbers.
In
computers, the main numeral systems are based on the positional system in base 2 (
binary numeral system
A binary number is a number expressed in the base-2 numeral system or binary numeral system, a method of mathematical expression which uses only two symbols: typically "0" ( zero) and "1" (one).
The base-2 numeral system is a positional notatio ...
), with two
binary digit
Binary may refer to:
Science and technology Mathematics
* Binary number, a representation of numbers using only two digits (0 and 1)
* Binary function, a function that takes two arguments
* Binary operation, a mathematical operation that ta ...
s, 0 and 1. Positional systems obtained by grouping binary digits by three (
octal numeral system) or four (
hexadecimal numeral system) are commonly used. For very large integers, bases 2
32 or 2
64 (grouping binary digits by 32 or 64, the length of the
machine word
In computing, a word is the natural unit of data used by a particular processor design. A word is a fixed-sized datum handled as a unit by the instruction set or the hardware of the processor. The number of bits or digits in a word (the ''wor ...
) are used, as, for example, in
GMP.
In certain biological systems, the
unary coding system is employed. Unary numerals used in the
neural circuit
A neural circuit is a population of neurons interconnected by synapses to carry out a specific function when activated. Neural circuits interconnect to one another to form large scale brain networks.
Biological neural networks have inspired th ...
s responsible for
birdsong
Bird vocalization includes both bird calls and bird songs. In non-technical use, bird songs are the bird sounds that are melodious to the human ear. In ornithology and birding, songs (relatively complex vocalizations) are distinguished by func ...
production.
[ Fiete, I. R.; Seung, H. S. (2007). "Neural network models of birdsong production, learning, and coding". In Squire, L.; Albright, T.; Bloom, F.; Gage, F.; Spitzer, N. New Encyclopedia of Neuroscience.] The nucleus in the brain of the songbirds that plays a part in both the learning and the production of bird song is the HVC (
high vocal center). The command signals for different notes in the birdsong emanate from different points in the HVC. This coding works as space coding which is an efficient strategy for biological circuits due to its inherent simplicity and robustness.
The numerals used when writing numbers with digits or symbols can be divided into two types that might be called the
arithmetic
Arithmetic () is an elementary part of mathematics that consists of the study of the properties of the traditional operations on numbers—addition, subtraction, multiplication, division, exponentiation, and extraction of roots. In the 19th c ...
numerals (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) and the
geometric
Geometry (; ) is, with arithmetic, one of the oldest branches of mathematics. It is concerned with properties of space such as the distance, shape, size, and relative position of figures. A mathematician who works in the field of geometry is ca ...
numerals (1, 10, 100, 1000, 10000 ...), respectively. The sign-value systems use only the geometric numerals and the positional systems use only the arithmetic numerals. A sign-value system does not need arithmetic numerals because they are made by repetition (except for the
Ionic system), and a positional system does not need geometric numerals because they are made by position. However, the spoken language uses ''both'' arithmetic and geometric numerals.
In some areas of computer science, a modified base ''k'' positional system is used, called
bijective numeration
Bijective numeration is any numeral system in which every non-negative integer can be represented in exactly one way using a finite string of digits. The name refers to the bijection (i.e. one-to-one correspondence) that exists in this case be ...
, with digits 1, 2, ..., ''k'' (), and zero being represented by an empty string. This establishes a
bijection between the set of all such digit-strings and the set of non-negative integers, avoiding the non-uniqueness caused by leading zeros. Bijective base-''k'' numeration is also called ''k''-adic notation, not to be confused with
''p''-adic numbers. Bijective base 1 is the same as unary.
Positional systems in detail
In a positional base ''b'' numeral system (with ''b'' a
natural number
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called '' cardinal ...
greater than 1 known as the
radix), ''b'' basic symbols (or digits) corresponding to the first ''b'' natural numbers including zero are used. To generate the rest of the numerals, the position of the symbol in the figure is used. The symbol in the last position has its own value, and as it moves to the left its value is multiplied by ''b''.
For example, in the
decimal system (base 10), the numeral 4327 means , noting that .
In general, if ''b'' is the base, one writes a number in the numeral system of base ''b'' by expressing it in the form and writing the enumerated digits in descending order. The digits are natural numbers between 0 and , inclusive.
If a text (such as this one) discusses multiple bases, and if ambiguity exists, the base (itself represented in base 10) is added in subscript to the right of the number, like this: number
base. Unless specified by context, numbers without subscript are considered to be decimal.
By using a dot to divide the digits into two groups, one can also write fractions in the positional system. For example, the base 2 numeral 10.11 denotes .
In general, numbers in the base ''b'' system are of the form:
:
The numbers ''b''
''k'' and ''b''
−''k'' are the
weights of the corresponding digits. The position ''k'' is the
logarithm
In mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a number to the base is the exponent to which must be raised, to produce . For example, since , the ''logarithm base'' 10 of ...
of the corresponding weight ''w'', that is
. The highest used position is close to the
order of magnitude
An order of magnitude is an approximation of the logarithm of a value relative to some contextually understood reference value, usually 10, interpreted as the base of the logarithm and the representative of values of magnitude one. Logarithmic di ...
of the number.
The number of
tally marks
Tally marks, also called hash marks, are a unary numeral system ( arguably).
They are a form of numeral used for counting. They are most useful in counting or tallying ongoing results, such as the score in a game or sport, as no intermediate ...
required in the
unary numeral system
The unary numeral system is the simplest numeral system to represent natural numbers: to represent a number ''N'', a symbol representing 1 is repeated ''N'' times.
In the unary system, the number 0 (zero) is represented by the empty string, th ...
for ''describing the weight'' would have been w. In the positional system, the number of digits required to describe it is only
, for ''k'' ≥ 0. For example, to describe the weight 1000 then four digits are needed because
. The number of digits required to ''describe the position'' is
(in positions 1, 10, 100,... only for simplicity in the decimal example).
:
A number has a terminating or repeating expansion
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false.
The connective is bi ...
it is
rational
Rationality is the quality of being guided by or based on reasons. In this regard, a person acts rationally if they have a good reason for what they do or a belief is rational if it is based on strong evidence. This quality can apply to an abil ...
; this does not depend on the base. A number that terminates in one base may repeat in another (thus ). An irrational number stays aperiodic (with an infinite number of non-repeating digits) in all integral bases. Thus, for example in base 2, can be written as the aperiodic 11.001001000011111...
2.
Putting
overscores, , or dots, ''ṅ'', above the common digits is a convention used to represent repeating rational expansions. Thus:
:14/11 = 1.272727272727... = 1. or 321.3217878787878... = 321.321.
If ''b'' = ''p'' is a
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
, one can define base-''p'' numerals whose expansion to the left never stops; these are called the
''p''-adic numbers.
Generalized variable-length integers
More general is using a
mixed radix
Mixed radix numeral systems are non-standard positional numeral systems in which the numerical base varies from position to position. Such numerical representation applies when a quantity is expressed using a sequence of units that are each a mu ...
notation (here written
little-endian
In computing, endianness, also known as byte sex, is the order or sequence of bytes of a word of digital data in computer memory. Endianness is primarily expressed as big-endian (BE) or little-endian (LE). A big-endian system stores the most ...
) like
for
, etc.
This is used in
Punycode
Punycode is a representation of Unicode with the limited ASCII character subset used for Internet hostnames. Using Punycode, host names containing Unicode characters are transcoded to a subset of ASCII consisting of letters, digits, and hyphens, ...
, one aspect of which is the representation of a sequence of non-negative integers of arbitrary size in the form of a sequence without delimiters, of "digits" from a collection of 36: a–z and 0–9, representing 0–25 and 26–35 respectively. There are also so-called threshold values (
) which are fixed for every position in the number. A digit
(in a given position in the number) that is lower than its corresponding threshold value
means that it is the most-significant digit, hence in the string this is the end of the number, and the next symbol (if present) is the least-significant digit of the next number.
For example, if the threshold value for the first digit is ''b'' (i.e. 1) then ''a'' (i.e. 0) marks the end of the number (it has just one digit), so in numbers of more than one digit, first-digit range is only b–9 (i.e. 1–35), therefore the weight ''b''
1 is 35 instead of 36. More generally, if ''t
n'' is the threshold for the ''n''-th digit, it is easy to show that
.
Suppose the threshold values for the second and third digits are ''c'' (i.e. 2), then the second-digit range is a–b (i.e. 0–1) with the second digit being most significant, while the range is c–9 (i.e. 2–35) in the presence of a third digit. Generally, for any ''n'', the weight of the (''n''+1)-th digit is the weight of the previous one times (36 − threshold of the ''n''-th digit). So the weight of the second symbol is
. And the weight of the third symbol is
.
So we have the following sequence of the numbers with at most 3 digits:
''a'' (0), ''ba'' (1), ''ca'' (2), ..., ''9a'' (35), ''bb'' (36), ''cb'' (37), ..., ''9b'' (70), ''bca'' (71), ..., ''99a'' (1260), ''bcb'' (1261), ..., ''99b'' (2450).
Unlike a regular n-based numeral system, there are numbers like ''9b'' where ''9'' and ''b'' each represent 35; yet the representation is unique because ''ac'' and ''aca'' are not allowed – the first ''a'' would terminate each of these numbers.
The flexibility in choosing threshold values allows optimization for number of digits depending on the frequency of occurrence of numbers of various sizes.
The case with all threshold values equal to 1 corresponds to
bijective numeration
Bijective numeration is any numeral system in which every non-negative integer can be represented in exactly one way using a finite string of digits. The name refers to the bijection (i.e. one-to-one correspondence) that exists in this case be ...
, where the zeros correspond to separators of numbers with digits which are non-zero.
See also
References
Sources
*Georges Ifrah. ''The Universal History of Numbers : From Prehistory to the Invention of the Computer'', Wiley, 1999. .
*
D. Knuth
Donald Ervin Knuth ( ; born January 10, 1938) is an American computer scientist, mathematician, and professor emeritus at Stanford University. He is the 1974 recipient of the ACM Turing Award, informally considered the Nobel Prize of computer ...
. ''
The Art of Computer Programming
''The Art of Computer Programming'' (''TAOCP'') is a comprehensive monograph written by the computer scientist Donald Knuth presenting programming algorithms and their analysis. Volumes 1–5 are intended to represent the central core of comp ...
''. Volume 2, 3rd Ed.
Addison–Wesley
Addison-Wesley is an American publisher of textbooks and computer literature. It is an imprint of Pearson PLC, a global publishing and education company. In addition to publishing books, Addison-Wesley also distributes its technical titles throug ...
. pp. 194–213, "Positional Number Systems".
*
A.L. Kroeber (Alfred Louis Kroeber) (1876–1960), Handbook of the Indians of California, Bulletin 78 of the Bureau of American Ethnology of the Smithsonian Institution (1919)
*J.P. Mallory and D.Q. Adams, ''Encyclopedia of Indo-European Culture'', Fitzroy Dearborn Publishers, London and Chicago, 1997.
*
*
*
External links
*
{{DEFAULTSORT:Numeral System
Graphemes
Mathematical notation
Writing systems
te:తెలుగు