A decimal representation of a
non-negative
In mathematics, the sign of a real number is its property of being either positive, negative, or zero. Depending on local conventions, zero may be considered as being neither positive nor negative (having no sign or a unique third sign), or it ...
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 ...
is its expression as a
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 symbols consisting of
decimal digits traditionally written with a single separator:
Here is the
decimal separator, is a
nonnegative integer, and
are ''digits'', which are symbols representing integers in the range 0, ..., 9.
Commonly,
if
The sequence of the
—the digits after the dot—is generally
infinite. If it is finite, the lacking digits are assumed to be 0. If all
are , the separator is also omitted, resulting in a finite sequence of digits, which represents 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 ...
.
The decimal representation represents the
infinite sum:
Every nonnegative real number has at least one such representation; it has two such representations (with
if
)
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 ...
one has a trailing infinite sequence of , and the other has a trailing infinite sequence of . For having