Real numbers and decimal expansions

Every number you have ever written down as a decimal — 0.50.5, 0.333…0.333\ldots, 1.41421…1.41421\ldots — is secretly telling you what kind of number it is. Rational numbers, the ratios pq\dfrac{p}{q} of integers, always produce decimals that either stop dead or settle into a repeating block. Irrational numbers never do either: their digits run forever with no pattern at all. That single distinction — does the decimal terminate, recur, or neither — is the dividing line between the rational and irrational worlds, and it is exactly what lets us place every real number, rational or irrational, at one unique point on the number line. This article builds on the Class 9 basics of terminating and recurring decimals and the successive-magnification method for locating a decimal exactly. Here we go one level deeper: why the prime factors of a denominator decide whether a decimal terminates, how to convert any recurring decimal back to a fraction with full rigor, and how the same zooming idea that pins down a terminating decimal is stretched to justify a point on the line for even a non-terminating, non-recurring one.

The core insight

A rational number's decimal expansion terminates exactly when its reduced denominator has only the prime factors 2 and 5, recurs otherwise, and successive magnification gives every real number — rational or irrational — a unique, well-defined point on the number line.

The core idea

Two and only two decimal behaviours for rationals. Take any rational number pq\dfrac{p}{q}, q≠0q \neq 0, and reduce it to lowest terms (HCF of pp and qq equal to 11). Long division of pp by qq can only ever behave in one of two ways: it terminates, meaning the remainder becomes 00 after finitely many steps, or it recurs, meaning it never hits remainder 00 but the sequence of remainders starts repeating, forcing a block of digits to repeat forever. There is no third option, because at every division step the remainder is one of the qq possible values 0,1,2,…,q−10, 1, 2, \ldots, q-1; if 00 never appears, some non-zero remainder must eventually reappear (there are only finitely many choices), and from that point on the division repeats exactly as before.

The denominator test. Whether the decimal terminates depends only on the prime factorisation of the reduced denominator qq:

pq terminates  ⟺  q=2m 5n,m,n≥0 integers.\frac{p}{q} \text{ terminates} \iff q = 2^m \, 5^n, \quad m, n \geq 0 \text{ integers.}

where: p,qp, q are integers in lowest terms, q≠0q \neq 0, and m,nm, n are the powers of the primes 22 and 55 in qq's factorisation. The reasoning is that a terminating decimal with kk digits after the point is really pq=N10k\dfrac{p}{q} = \dfrac{N}{10^k} for some integer NN, and 10k=2k5k10^k = 2^k 5^k — so the denominator, once fully reduced, can only ever carry the primes 22 and 55. If any other prime (3, 7, 11, ...) survives in qq after reduction, no power of 1010 can ever absorb it, and the division is forced to recur.

Converting a recurring decimal back to pq\dfrac{p}{q}. Every non-terminating recurring decimal is rational, and the standard technique is "multiply and subtract": let xx equal the decimal, multiply by the power of 1010 that shifts the repeating block exactly one full cycle, then subtract the original equation so the infinite repeating tail cancels, leaving a simple linear equation in xx.

Successive magnification, extended to irrationals. For a terminating or recurring decimal, zooming into successive intervals of width 10−1,10−2,10−3,…10^{-1}, 10^{-2}, 10^{-3}, \ldots around the true value eventually nails it down exactly (or the digits settle into their repeating cycle). A non-terminating, non-recurring decimal — an irrational number such as 2=1.41421356…\sqrt2 = 1.41421356\ldots — never lets the digits settle, so the zooming process never "finishes." But at every stage the interval still shrinks by a factor of 1010 and still contains the number, so the process still identifies one and only one point on the number line, just one that requires infinitely many stages rather than finitely many. This is precisely why the real number line — rationals and irrationals together — has no gaps: every possible decimal string, finite or infinite, periodic or not, lands on exactly one point.

Figure
Two branches from a fraction p over q, one showing division stopping at remainder zero to give a terminating decimal, the other showing remainders repeating to give a recurring decimal, with the denominator test labelled between them
What decides terminating versus recurring p / q, lowest terms q = 2^m 5^n only remainder hits 0 q has another prime remainder repeats terminating, e.g. 7/8 = 0.875 recurring, e.g. 1/3 = 0.333... Both are rational; only the type of decimal differs
Derivation AConverting a recurring decimal to p over q

The goal is to take a non-terminating recurring decimal such as 0.47‾=0.4777…0.4\overline{7} = 0.4777\ldots, where a single digit repeats after one non-repeating digit, and produce its exact fraction pq\dfrac{p}{q} in lowest terms using only algebra — multiplying by suitable powers of 1010 and subtracting to eliminate the infinite repeating tail, with no limits or calculus required.

Step 1. Let x=0.47‾=0.47777…x = 0.4\overline{7} = 0.47777\ldots Identify the structure: one digit (44) does not repeat, and one digit (77) repeats forever after it.

Step 2. Multiply xx by 1010 to shift the decimal point past the non-repeating digit: 10x=4.7777…10x = 4.7777\ldots Now the repeating part begins immediately after the decimal point.

Step 3. Multiply 10x10x by 1010 again (equivalently, multiply the original xx by 100100) to shift one full repeating cycle further: 100x=47.7777…100x = 47.7777\ldots

Step 4. Subtract the Step 2 equation from the Step 3 equation so the infinite tail of 77s cancels exactly: 100x−10x=47.7777…−4.7777…100x - 10x = 47.7777\ldots - 4.7777\ldots, giving 90x=4390x = 43.

Step 5. Solve for xx: x=4390x = \dfrac{43}{90}. Check that 4343 and 9090 share no common factor (4343 is prime and does not divide 9090), so this is already in lowest terms, and note 90=2×32×590 = 2 \times 3^2 \times 5 carries the prime 33 — consistent with the decimal being recurring, not terminating. Verified: dividing 43÷9043 \div 90 by long division reproduces 0.4777…=0.47‾0.4777\ldots = 0.4\overline{7}.

Worked example

Determine, without doing the division, whether 78\dfrac{7}{8} and 615\dfrac{6}{15} have terminating or recurring decimal expansions, then find the exact decimal for whichever one terminates.

Step 1. Check 78\dfrac{7}{8}: is it already in lowest terms? HCF(7,8)=1(7,8) = 1, yes. Factorise the denominator: 8=238 = 2^3. Only the prime 22 appears, so by the denominator test this decimal must terminate.

Step 2. Check 615\dfrac{6}{15}: is it in lowest terms? HCF(6,15)=3(6, 15) = 3, so it is not reduced. Reduce first: 615=6÷315÷3=25\dfrac{6}{15} = \dfrac{6 \div 3}{15 \div 3} = \dfrac{2}{5}. Now factorise the reduced denominator: 5=515 = 5^1. Only the prime 55 appears, so this decimal must also terminate. (Skipping the reduction step and testing 15=3×515 = 3 \times 5 directly would have wrongly suggested a recurring decimal — the 33 only appeared because the fraction was unreduced.)

Step 3. Find the exact decimal for 78\dfrac{7}{8} by converting to a power-of-10 denominator: multiply numerator and denominator by 125125 (since 8×125=10008 \times 125 = 1000): 78=7×1258×125=8751000=0.875\dfrac{7}{8} = \dfrac{7 \times 125}{8 \times 125} = \dfrac{875}{1000} = 0.875.

Step 4. Find the exact decimal for 25\dfrac{2}{5} similarly: multiply by 22 so the denominator becomes 1010: 25=410=0.4\dfrac{2}{5} = \dfrac{4}{10} = 0.4.

Both terminate: 78=0.875\dfrac{7}{8} = 0.875 and 615=25=0.4\dfrac{6}{15} = \dfrac{2}{5} = 0.4.

Competitive stretch

A slightly trickier check: does 922×5×3\dfrac{9}{2^2 \times 5 \times 3} terminate? First reduce — 9=329 = 3^2 cancels one factor of 33 in the denominator, leaving 322×5=320\dfrac{3}{2^2 \times 5} = \dfrac{3}{20}, whose denominator 20=22×520 = 2^2 \times 5 has only primes 22 and 55. So it terminates: 320=15100=0.15\dfrac{3}{20} = \dfrac{15}{100} = 0.15. The lesson repeats — always reduce to lowest terms before reading off the denominator's primes.

Common traps

  • Reading the denominator's prime factors before reducing the fraction to lowest terms — an unreduced denominator can carry a stray prime (like the 33 in 6/156/15) that cancels away and never actually affects the decimal.
  • Choosing the wrong power of 1010 when converting a recurring decimal to a fraction — the multiplier in each step must match exactly how many digits need to shift past the non-repeating part or past one full repeating cycle, not a guessed value.
  • Believing a decimal that merely looks repetitive for a few digits (like 0.454545454…0.454545454\ldots truncated on a calculator screen) is automatically recurring — genuine recurring decimals repeat the identical block forever, which calculators can only display, not prove.
  • Thinking successive magnification only works for terminating decimals — the same interval-halving-by-ten idea, continued without end, is exactly what gives irrational numbers their unique point on the number line too.

Ask the tutor: If you are stuck picking the right power of 10 for a recurring-decimal conversion, ask the AI tutor to walk through your specific example step by step.

Why does only the denominator matter, and not the numerator, for deciding terminating versus recurring?

Long division's remainder cycle depends entirely on which numbers are possible remainders when dividing by qq — the remainders are always 00 through q−1q-1, no matter what pp is. The numerator only affects which remainder you start from and what digits appear, not whether the process can ever land on remainder 00 or must instead cycle through repeats. That landing possibility is fixed purely by whether qq's prime factors are limited to 22 and 55, since only those primes can ever divide evenly into a power of 1010.

Is 0.999999... really equal to 1, or just very close to it?

It is genuinely equal to 11, not just close. Let x=0.9‾x = 0.\overline{9}, so 10x=9.9‾10x = 9.\overline{9}. Subtracting, 10x−x=9.9‾−0.9‾10x - x = 9.\overline{9} - 0.\overline{9} gives 9x=99x = 9, so x=1x = 1. The same multiply-and-subtract method used for any recurring decimal proves it exactly — there is no gap between 0.9‾0.\overline9 and 11 on the number line, they are two decimal names for the same real number.

Do irrational numbers ever have a repeating pattern if you look far enough into the digits?

No — that is precisely what makes a number irrational. A decimal that eventually repeats a fixed block forever can always be converted back to some pq\dfrac{p}{q} using the multiply-and-subtract method, which makes it rational by definition. So a genuinely non-terminating, non-repeating decimal like 2=1.41421356…\sqrt2 = 1.41421356\ldots or π=3.14159265…\pi = 3.14159265\ldots can never settle into a repeating cycle at any point, however far you compute — if it ever did, it would secretly be rational.

Before this

Where this leads