9. Decimal representation of real numbers

A real number always has a decimal representation, possibly with an unending sequence of digits in the representation. For example, as you know, the first few decimal places of $\pi$ are $3.14159\ldots$. As a general rule, you don’t expect to know the exact value of a real number, but only an approximation to it by knowing its first few decimal places. Note that $22/7$ is not $\pi$, although it is close to it.

9.1.1 Usage The decimal representation is also called the decimal expansion.

9.1.2 Approximations Mathematicians on the one hand and scientists and engineers on the other tend to treat expressions such as “$3.14159$” in two different ways. The mathematician will think of it as a precisely given number, namely $\tfrac{314159}{100000}$, so in particular it represents a rational number. The scientist or engineer will treat it as the known part of the decimal representation of a real number. From their point of view, one knows $3.14159$ to six significant figures. This book always takes the mathematician’s point of view.

Mathematicians referring to an approximation may use an ellipsis (three dots), as in “$\pi$ is approximately $3.14159\ldots$”.

The decimal representations of two different real numbers must be different. However, two different decimal representations can, in certain circumstances, represent the same real number. This is specified precisely by the following rule:

9.2 Theorem

If $m=d_{0}.d_{1}d_{2}d_{3}\ldots$ and $n=e_{0}.e_{1}e_{2}e_{3}\ldots$, where all the $d_{i}$ and $e_{i}$ are decimal digits, and for some integer $k\geq 0$ the following four statements are all correct, then $m=n$:

DR.1 $d_{i}=e_{i}$ for $0\leq i<k$;

DR.2 $d_{k}=e_{k}+1$;

DR.3 $d_{i}=0$ for all $i>k$; and

DR.4 $e_{i}=9$ for all $i>k$.

Moreover, if the decimal representations of $m$ and $n$ are not identical but do not follow this pattern for some $k$, then $m\neq n$.

9.2.1 Usage We use a line over a string of digits to indicate that they are repeated infinitely often.

9.2.2 Example $4.\overline{9}=5$ (here $k=0$ in Theorem 9.2) and $1.45\overline{9}=1.46$ (here $k=2$).

9.2.3 Remarks

a) As it stands, Theorem 9.2 applies only to real numbers between 0 and 10, but that was only to avoid cumbersome notation. By multiplying or dividing by the appropriate power of 10, you can apply it to any real number. For example, $499.\overline{9}=500$, since Theorem 9.2 applies to those numbers divided by 100.

b) The proofs of Theorems 9.2 and 10.1 (below) are based on the theory of geometric series (and are easy if you are familiar with that subject) but that belongs to continuous mathematics rather than discrete mathematics and will not be pursued here.

9.2.4 Exercise Which of these pairs of real numbers are equal?

a) $1.414$, $\sqrt{2}$.

b) $473, 472.999$.

c) $4.0\overline{9}$, $4.1$.

(Answer on page 243.)

9.2.5 Exercise Which of these pairs of real numbers are equal?

a) $53.\overline{9}$, $53.0$.

b) $39/13$, $2.\overline{9}$.

c) $5698/11259$ and $.506084$.

9.2.6 Exercise If possible, give two different decimal representations of each number. If not possible, explain why not.

a) $\tfrac{25}{3}$.

b) $\tfrac{25}{4}$.

c) $105.3$.

Pages 12–14 of the book (PDF).