Signed-digit representation
   HOME

TheInfoList



OR:

In
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 mathem ...
for
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 c ...
s, a signed-digit representation is a
positional numeral system 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 th ...
with a set of signed digits used to
encode The Encyclopedia of DNA Elements (ENCODE) is a public research project which aims to identify functional elements in the human genome. ENCODE also supports further biomedical research by "generating community resources of genomics data, software ...
the
integers 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 ...
. Signed-digit representation can be used to accomplish fast addition of integers because it can eliminate chains of dependent carries. In the binary numeral system, a special case signed-digit representation is the '' non-adjacent form'', which can offer speed benefits with minimal space overhead.


History

Challenges in calculation stimulated early authors Colson (1726) and Cauchy (1840) to use signed-digit representation. The further step of replacing negated digits with new ones was suggested by Selling (1887) and Cajori (1928). In 1928,
Florian Cajori Florian Cajori (February 28, 1859 – August 14 or 15, 1930) was a Swiss-American historian of mathematics. Biography Florian Cajori was born in Zillis, Switzerland, as the son of Georg Cajori and Catherine Camenisch. He attended schools first ...
noted the recurring theme of signed digits, starting with Colson (1726) and
Cauchy Baron Augustin-Louis Cauchy (, ; ; 21 August 178923 May 1857) was a French mathematician, engineer, and physicist who made pioneering contributions to several branches of mathematics, including mathematical analysis and continuum mechanics. He w ...
(1840). In his book ''History of Mathematical Notations'', Cajori titled the section "Negative numerals". For completeness, Colson uses examples and describes addition (pp. 163–4), multiplication (pp. 165–6) and
division Division or divider may refer to: Mathematics *Division (mathematics), the inverse of multiplication *Division algorithm, a method for computing the result of mathematical division Military *Division (military), a formation typically consisting ...
(pp. 170–1) using a table of multiples of the divisor. He explains the convenience of approximation by truncation in multiplication. Colson also devised an instrument (Counting Table) that calculated using signed digits. Eduard Selling advocated inverting the digits 1, 2, 3, 4, and 5 to indicate the negative sign. He also suggested ''snie'', ''jes'', ''jerd'', ''reff'', and ''niff'' as names to use vocally. Most of the other early sources used a bar over a digit to indicate a negative sign for it. Another German usage of signed-digits was described in 1902 in
Klein's encyclopedia Felix Klein's ''Encyclopedia of Mathematical Sciences'' is a German mathematical encyclopedia published in six volumes from 1898 to 1933. Klein and Wilhelm Franz Meyer were organizers of the encyclopedia. Its full title in English is ''Encycloped ...
.


Definition and properties


Digit set

Let \mathcal be a
finite set In mathematics, particularly set theory, a finite set is a set that has a finite number of elements. Informally, a finite set is a set which one could in principle count and finish counting. For example, :\ is a finite set with five elements. T ...
of
numerical digits A numerical digit (often shortened to just digit) is a single symbol used alone (such as "2") or in combinations (such as "25"), to represent numbers in a positional numeral system. The name "digit" comes from the fact that the ten digits (Latin ...
with cardinality b > 1 (If b \leq 1, then the positional number system is
trivial Trivia is information and data that are considered to be of little value. It can be contrasted with general knowledge and common sense. Latin Etymology The ancient Romans used the word ''triviae'' to describe where one road split or forked ...
and only represents the
trivial ring In ring theory, a branch of mathematics, the zero ring or trivial ring is the unique ring (up to isomorphism) consisting of one element. (Less commonly, the term "zero ring" is used to refer to any rng of square zero, i.e., a rng in which for ...
), with each digit denoted as d_i for 0 \leq i < b. b is known as the radix or
number base In a positional numeral system, the radix or base 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 t ...
. \mathcal can be used for a signed-digit representation if it's associated with a unique
function Function or functionality may refer to: Computing * Function key, a type of key on computer keyboards * Function model, a structured representation of processes in a system * Function object or functor or functionoid, a concept of object-oriente ...
f_\mathcal:\mathcal\rightarrow\mathbb such that f_\mathcal(d_i) \equiv i \bmod b for all 0 \leq i < b. This function, f_, is what rigorously and formally establishes how integer values are assigned to the symbols/glyphs in \mathcal. One benefit of this formalism is that the definition of "the integers" (however they may be defined) is not conflated with any particular system for writing/representing them; in this way, these two distinct (albeit closely related) concepts are kept separate. \mathcal can be partitioned into three distinct sets \mathcal_, \mathcal_, and \mathcal_, representing the positive, zero, and negative digits respectively, such that all digits d_\in\mathcal_ satisfy f_\mathcal(d_) > 0, all digits d_\in\mathcal_ satisfy f_\mathcal(d_) = 0 and all digits d_\in\mathcal_ satisfy f_\mathcal(d_) < 0. The cardinality of \mathcal_ is b_, the cardinality of \mathcal_ is b_, and the cardinality of \mathcal_ is b_, giving the number of positive and negative digits respectively, such that b = b_ + b_ + b_.


Balanced form representations

Balanced form representations are representations where for every positive digit d_, there exist a corresponding negative digit d_ such that f_\mathcal(d_) = -f_\mathcal(d_). It follows that b_ = b_. Only
odd Odd means unpaired, occasional, strange or unusual, or a person who is viewed as eccentric. Odd may also refer to: Acronym * ODD (Text Encoding Initiative) ("One Document Does it all"), an abstracted literate-programming format for describing X ...
bases can have balanced form representations, as otherwise d_ has to be the opposite of itself and hence 0, but 0\ne \frac b2. In balanced form, the negative digits d_\in\mathcal_ are usually denoted as positive digits with a bar over the digit, as d_ = \bar_ for d_\in\mathcal_. For example, the digit set of
balanced ternary Balanced ternary is a ternary numeral system (i.e. base 3 with three 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 standard (unbalanc ...
would be \mathcal_ = \lbrace\bar,0,1\rbrace with f_(\bar) = -1, f_(0) = 0, and f_(1) = 1. This convention is adopted in
finite field In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field that contains a finite number of elements. As with any field, a finite field is a set on which the operations of multiplication, addition, subtr ...
s of odd
prime 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 ways ...
order q: :\mathbb_ = \lbrace0, 1, \bar = -1,... d = \frac,\ \bar = \frac\ , \ q = 0\rbrace.


Dual signed-digit representation

Every digit set \mathcal has a dual digit set \mathcal^\operatorname given by the inverse order of the digits with an
isomorphism In mathematics, an isomorphism is a structure-preserving mapping between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between them. The word i ...
g:\mathcal\rightarrow\mathcal^\operatorname defined by -f_\mathcal = g\circ f_. As a result, for any signed-digit representations \mathcal of a number system
ring Ring may refer to: * Ring (jewellery), a round band, usually made of metal, worn as ornamental jewelry * To make a sound with a bell, and the sound made by a bell :(hence) to initiate a telephone connection Arts, entertainment and media Film and ...
N constructed from \mathcal with valuation v_\mathcal:\mathcal\rightarrow N, there exists a dual signed-digit representations of N, \mathcal^\operatorname, constructed from \mathcal^\operatorname with valuation v_:\mathcal^\operatorname\rightarrow N, and an isomorphism h:\mathcal\rightarrow\mathcal^\operatorname defined by -v_\mathcal = h\circ v_, where - is the additive inverse operator of N. The digit set for balanced form representations is self-dual.


For integers

Given the digit set \mathcal and function f:\mathcal\rightarrow\mathbb as defined above, let us define an
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 languag ...
endofunction In mathematics, an endomorphism is a morphism from a mathematical object to itself. An endomorphism that is also an isomorphism is an automorphism. For example, an endomorphism of a vector space is a linear map , and an endomorphism of a grou ...
T:\mathbb\rightarrow\mathbb as the following: :T(n) = \begin \frac &\text n \equiv i \bmod b, 0 \leq i < b \end If the only
periodic point In mathematics, in the study of iterated functions and dynamical systems, a periodic point of a function is a point which the system returns to after a certain number of function iterations or a certain amount of time. Iterated functions Given a ...
of T is the fixed point 0, then the set of all signed-digit representations of the
integers 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 ...
\mathbb using \mathcal is given by the
Kleene plus In mathematical logic and computer science, the Kleene star (or Kleene operator or Kleene closure) is a unary operation, either on sets of strings or on sets of symbols or characters. In mathematics, it is more commonly known as the free monoid ...
\mathcal^+, the set of all finite
concatenated In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenat ...
strings of digits d_n \ldots d_0 with at least one digit, with n\in\mathbb. Each signed-digit representation m \in \mathcal^+ has a valuation v_\mathcal:\mathcal^+\rightarrow\mathbb :v_\mathcal(m) = \sum_^f_\mathcal(d_)b^. Examples include
balanced ternary Balanced ternary is a ternary numeral system (i.e. base 3 with three 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 standard (unbalanc ...
with digits \mathcal = \lbrace \bar, 0, 1\rbrace. Otherwise, if there exist a non-zero
periodic point In mathematics, in the study of iterated functions and dynamical systems, a periodic point of a function is a point which the system returns to after a certain number of function iterations or a certain amount of time. Iterated functions Given a ...
of T, then there exist integers that are represented by an infinite number of non-zero digits in \mathcal. Examples include the standard decimal numeral system with the digit set \operatorname = \lbrace 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 \rbrace, which requires an infinite number of the digit 9 to represent the additive inverse -1, as T_\operatorname(-1) = \frac = -1, and the positional numeral system with the digit set \mathcal = \lbrace \text, 0, 1\rbrace with f(\text) = -4, which requires an infinite number of the digit \text to represent the number 2, as T_\mathcal(2) = \frac = 2.


For decimal fractions

If the integers can be represented by the
Kleene plus In mathematical logic and computer science, the Kleene star (or Kleene operator or Kleene closure) is a unary operation, either on sets of strings or on sets of symbols or characters. In mathematics, it is more commonly known as the free monoid ...
\mathcal^+, then the set of all signed-digit representations of the
decimal fraction 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 num ...
s, or b-adic rationals \mathbb \backslash b/math>, is given by \mathcal = \mathcal^+\times\mathcal\times\mathcal^*, the Cartesian product of the
Kleene plus In mathematical logic and computer science, the Kleene star (or Kleene operator or Kleene closure) is a unary operation, either on sets of strings or on sets of symbols or characters. In mathematics, it is more commonly known as the free monoid ...
\mathcal^+, the set of all finite
concatenated In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenat ...
strings of digits d_n \ldots d_0 with at least one digit, the
singleton Singleton may refer to: Sciences, technology Mathematics * Singleton (mathematics), a set with exactly one element * Singleton field, used in conformal field theory Computing * Singleton pattern, a design pattern that allows only one instance ...
\mathcal consisting of the
radix 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 choi ...
(. or ,), and the
Kleene star In mathematical logic and computer science, the Kleene star (or Kleene operator or Kleene closure) is a unary operation, either on sets of strings or on sets of symbols or characters. In mathematics, it is more commonly known as the free monoid ...
\mathcal^*, the set of all finite
concatenated In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenat ...
strings of digits d_ \ldots d_, with m,n\in\mathbb. Each signed-digit representation q \in \mathcal has a valuation v_\mathcal:\mathcal\rightarrow\mathbb \backslash b/math> :v_\mathcal(q) = \sum_^f_\mathcal(d_)b^


For real numbers

If the integers can be represented by the
Kleene plus In mathematical logic and computer science, the Kleene star (or Kleene operator or Kleene closure) is a unary operation, either on sets of strings or on sets of symbols or characters. In mathematics, it is more commonly known as the free monoid ...
\mathcal^+, then the set of all signed-digit representations of the real numbers \mathbb is given by \mathcal = \mathcal^+ \times \mathcal \times \mathcal^\mathbb, the Cartesian product of the
Kleene plus In mathematical logic and computer science, the Kleene star (or Kleene operator or Kleene closure) is a unary operation, either on sets of strings or on sets of symbols or characters. In mathematics, it is more commonly known as the free monoid ...
\mathcal^+, the set of all finite
concatenated In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenat ...
strings of digits d_n \ldots d_0 with at least one digit, the
singleton Singleton may refer to: Sciences, technology Mathematics * Singleton (mathematics), a set with exactly one element * Singleton field, used in conformal field theory Computing * Singleton pattern, a design pattern that allows only one instance ...
\mathcal consisting of the
radix 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 choi ...
(. or ,), and the
Cantor space In mathematics, a Cantor space, named for Georg Cantor, is a topological abstraction of the classical Cantor set: a topological space is a Cantor space if it is homeomorphic to the Cantor set. In set theory, the topological space 2ω is called "the ...
\mathcal^\mathbb, the set of all
infinite Infinite may refer to: Mathematics * Infinite set, a set that is not a finite set *Infinity, an abstract concept describing something without any limit Music *Infinite (group), a South Korean boy band *''Infinite'' (EP), debut EP of American m ...
concatenated In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenat ...
strings of digits d_ d_ \ldots, with n\in\mathbb. Each signed-digit representation r \in \mathcal has a valuation v_\mathcal:\mathcal\rightarrow\mathbb :v_\mathcal(r) = \sum_^f_\mathcal(d_)b^. The
infinite series In mathematics, a series is, roughly speaking, a description of the operation of adding infinitely many quantities, one after the other, to a given starting quantity. The study of series is a major part of calculus and its generalization, math ...
always converges to a finite real number.


For other number systems

All base-b numerals can be represented as a subset of \mathcal^\mathbb, the set of all doubly infinite sequences of digits in \mathcal, where \mathbb is the set of
integers 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 ...
, and the
ring Ring may refer to: * Ring (jewellery), a round band, usually made of metal, worn as ornamental jewelry * To make a sound with a bell, and the sound made by a bell :(hence) to initiate a telephone connection Arts, entertainment and media Film and ...
of base-b numerals is represented by the
formal power series ring In mathematics, a formal series is an infinite sum that is considered independently from any notion of convergence, and can be manipulated with the usual algebraic operations on series (addition, subtraction, multiplication, division, partial sum ...
\mathbb b,b^, the doubly infinite series :\sum_^a_i b^i where a_i\in\mathbb for i\in\mathbb.


Integers modulo b^n

The set of all signed-digit representations of the integers modulo b^n, \mathbb\backslash b^n\mathbb is given by the set \mathcal^n, the set of all finite
concatenated In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenat ...
strings of digits d_ \ldots d_0 of length n, with n\in\mathbb. Each signed-digit representation m \in \mathcal^n has a valuation v_\mathcal:\mathcal^n\rightarrow\mathbb/b^n\mathbb :v_\mathcal(m) \equiv \sum_^f_\mathcal(d_)b^ \bmod b^n


Prüfer groups

A Prüfer group is the quotient group \mathbb(b^\infty) = \mathbb \backslash b\mathbb of the integers and the b-adic rationals. The set of all signed-digit representations of the Prüfer group is given by the
Kleene star In mathematical logic and computer science, the Kleene star (or Kleene operator or Kleene closure) is a unary operation, either on sets of strings or on sets of symbols or characters. In mathematics, it is more commonly known as the free monoid ...
\mathcal^*, the set of all finite
concatenated In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenat ...
strings of digits d_ \ldots d_, with n\in\mathbb. Each signed-digit representation p \in \mathcal^* has a valuation v_\mathcal:\mathcal^*\rightarrow\mathbb(b^\infty) :v_\mathcal(m) \equiv \sum_^f_\mathcal(d_)b^ \bmod 1


Circle group

The circle group is the quotient group \mathbb = \mathbb/\mathbb of the integers and the real numbers. The set of all signed-digit representations of the circle group is given by the
Cantor space In mathematics, a Cantor space, named for Georg Cantor, is a topological abstraction of the classical Cantor set: a topological space is a Cantor space if it is homeomorphic to the Cantor set. In set theory, the topological space 2ω is called "the ...
\mathcal^\mathbb, the set of all right-infinite concatenated strings of digits d_ d_ \ldots. Each signed-digit representation m \in \mathcal^n has a valuation v_\mathcal:\mathcal^\mathbb\rightarrow\mathbb :v_\mathcal(m) \equiv \sum_^f_\mathcal(d_)b^ \bmod 1 The
infinite series In mathematics, a series is, roughly speaking, a description of the operation of adding infinitely many quantities, one after the other, to a given starting quantity. The study of series is a major part of calculus and its generalization, math ...
always converges.


b-adic integers

The set of all signed-digit representations of the b-adic integers, \mathbb_b is given by the
Cantor space In mathematics, a Cantor space, named for Georg Cantor, is a topological abstraction of the classical Cantor set: a topological space is a Cantor space if it is homeomorphic to the Cantor set. In set theory, the topological space 2ω is called "the ...
\mathcal^\mathbb, the set of all left-infinite concatenated strings of digits \ldots d_ d_. Each signed-digit representation m \in \mathcal^n has a valuation v_\mathcal:\mathcal^\mathbb\rightarrow\mathbb_ :v_\mathcal(m) = \sum_^f_\mathcal(d_)b^


b-adic solenoids

The set of all signed-digit representations of the b-adic solenoids, \mathbb_b is given by the
Cantor space In mathematics, a Cantor space, named for Georg Cantor, is a topological abstraction of the classical Cantor set: a topological space is a Cantor space if it is homeomorphic to the Cantor set. In set theory, the topological space 2ω is called "the ...
\mathcal^\mathbb, the set of all
doubly infinite 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 t ...
concatenated strings of digits \ldots d_ d_ d_ \ldots. Each signed-digit representation m \in \mathcal^n has a valuation v_\mathcal:\mathcal^\mathbb\rightarrow\mathbb_ :v_\mathcal(m) = \sum_^f_\mathcal(d_)b^


In written and spoken language


Indo-Aryan languages

The oral and written forms of numbers in the
Indo-Aryan languages The Indo-Aryan languages (or sometimes Indic languages) are a branch of the Indo-Iranian languages in the Indo-European languages, Indo-European language family. As of the early 21st century, they have more than 800 million speakers, primarily ...
use a negative numeral (e.g., "un" in
Hindi Hindi ( Devanāgarī: or , ), or more precisely Modern Standard Hindi (Devanagari: ), is an Indo-Aryan language spoken chiefly in the Hindi Belt region encompassing parts of northern, central, eastern, and western India. Hindi has been ...
and
Bengali Bengali or Bengalee, or Bengalese may refer to: *something of, from, or related to Bengal, a large region in South Asia * Bengalis, an ethnic and linguistic group of the region * Bengali language, the language they speak ** Bengali alphabet, the w ...
, "un" or "unna" in Punjabi, "ekon" in Marathi) for the numbers between 11 and 90 that end with a nine. The numbers followed by their names are shown for Punjabi below (the prefix "ik" means "one"): * 19 unni, 20 vih, 21 ikki * 29 unatti, 30 tih, 31 ikatti * 39 untali, 40 chali, 41 iktali * 49 unanja, 50 panjah, 51 ikvanja * 59 unahat, 60 sath, 61 ikahat * 69 unattar, 70 sattar, 71 ikhattar * 79 unasi, 80 assi, 81 ikiasi * 89 unanve, 90 nabbe, 91 ikinnaven. Similarly, the
Sesotho Sotho () or Sesotho () or Southern Sotho is a Southern Bantu language of the Sotho–Tswana ("S.30") group, spoken primarily by the Basotho in Lesotho, where it is the national and official language; South Africa (particularly the Free ...
language utilizes negative numerals to form 8's and 9's. * 8 robeli (/Ro-bay-dee/) meaning "break two" i.e. two fingers down * 9 robong (/Ro-bong/) meaning "break one" i.e. one finger down


Classical Latin

In
Classical Latin Classical Latin is the form of Literary Latin recognized as a literary standard by writers of the late Roman Republic and early Roman Empire. It was used from 75 BC to the 3rd century AD, when it developed into Late Latin. In some later period ...
, integers 18 and 19 did not even have a spoken, nor written form including corresponding parts for "eight" or "nine" in practice - despite them being in existence. Instead, in Classic Latin, *18 = duodēvīgintī ("two taken from twenty"), (IIXX or XIIX), *19 = ūndēvīgintī ("one taken from twenty"), (IXX or XIX) *20 = vīgintī ("twenty"), (XX). For upcoming integer numerals 8, 29, 38, 39, ..., 88, 89the additive form in the language had been much more common, however, for the listed numbers, the above form was still preferred. Hence, approaching thirty, numerals were expressed as: *28 = duodētrīgintā ("two taken from thirty"), less frequently also yet vīgintī octō / octō et vīgintī ("twenty eight / eight and twenty"), (IIXXX or XXIIX versus XXVIII, latter having been fully outcompeted.) *29 = ūndētrīgintā ("one taken from thirty") despite the less preferred form was also at their disposal. This is one of the main foundations of contemporary historians' reasoning, explaining why the subtractive I- and II- was so common in this range of cardinals compared to other ranges. Numerals 98 and 99 could also be expressed in both forms, yet "two to hundred" might have sounded a bit odd - clear evidence is the scarce occurrence of these numbers written down in a subtractive fashion in authentic sources.


Finnish Language

There is yet another language having this feature (by now, only in traces), however, still in active use today. This is the
Finnish Language Finnish ( endonym: or ) is a Uralic language of the Finnic branch, spoken by the majority of the population in Finland and by ethnic Finns outside of Finland. Finnish is one of the two official languages of Finland (the other being Swedis ...
, where the (spelled out) numerals are used this way should a digit of 8 or 9 occur. The scheme is like this:
from
Kielitoimiston sanakirja ''Dictionary of Contemporary Finnish'' ( fi, Kielitoimiston sanakirja, previously known as the ''New Dictionary of Modern Finnish'') is the most recent dictionary of the modern Finnish language. It is edited by the Institute for the Languages ...
*1 = "yksi" (Note: yhd- or yht- mostly when about to be declined; e.g. "yhdessä" = "together, as one ntity) *2 = "kaksi" (Also note: kahde-, kahte- when declined) *3 = "kolme" *4 = "neljä" ... *7 = "seitsemän" *8 = "kah(d)eksan" (two left or it to reach it *9 = "yh(d)eksän" (one left or it to reach it *10 = "kymmenen" (ten) Above list is no special case, it consequently appears in larger cardinals as well, e.g.: *399 = "kolmesataayhdeksänkymmentäyhdeksän" Emphasizing of these attributes stay present even in the shortest colloquial forms of numerals: *1 = "yy" *2 = "kaa" *3 = "koo" ... *7 = "seiska" *8 = "kasi" *9 = "ysi" *10 = "kymppi" However, this phenomenon has no influence on written numerals, the Finnish use the standard Western-Arabic decimal notation.


Time keeping

In 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 the ...
it is common to refer to times as, for example, 'seven to three', 'to' performing the negation.


Other systems

There exist other signed-digit bases such that the base b \neq b_ + b_ + 1. A notable examples of this is Booth encoding, which has a digit set \mathcal = \lbrace\bar,0,1\rbrace with b_ = 1 and b_ = 1, but which uses a base b = 2 < 3 = b_ + b_ + 1. The standard binary numeral system would only use digits of value \lbrace0,1\rbrace. Note that non-standard signed-digit representations are not unique. For instance: : 0111_ = 4 + 2 + 1 = 7 : 10\bar1_ = 8 - 2 + 1 = 7 : 1\bar11_ = 8 - 4 + 2 + 1 = 7 : 100\bar_ = 8 - 1 = 7 The non-adjacent form (NAF) of Booth encoding does guarantee a unique representation for every integer value. However, this only applies for integer values. For example, consider the following repeating binary numbers in NAF, : \frac = 0.\overline_ = 1.\overline_


See also

*
Balanced ternary Balanced ternary is a ternary numeral system (i.e. base 3 with three 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 standard (unbalanc ...
*
Negative base A negative base (or negative radix) may be used to construct a non-standard positional numeral system. Like other place-value systems, each position holds multiples of the appropriate power of the system's base; but that base is negative—that i ...
* Redundant binary representation


Notes and references

* J. P. Balantine (1925) "A Digit for Negative One", American Mathematical Monthly 32:302. * Lui Han, Dongdong Chen, Seok-Bum Ko, Khan A. Wahi
"Non-speculative Decimal Signed Digit Adder"
from Department of Electrical and Computer Engineering,
University of Saskatchewan A university () is an institution of higher (or tertiary) education and research which awards academic degrees in several academic disciplines. Universities typically offer both undergraduate and postgraduate programs. In the United States, ...
. {{DEFAULTSORT:Signed-Digit Representation Non-standard positional numeral systems Number theory Ring theory Arithmetic dynamics Coding theory Formal languages