math.wiki
Number › Rational numbers › Turning a repeating decimal into a fraction
Open on the map
Math 8 · 8.NS.A.1

Turning a repeating decimal into a fraction

A decimal like 0.575757\ldots never ends, so it cannot be read off as so many tenths or hundredths. Which fraction is it, exactly, and how can you be sure?

Where you are 10 in Rational numbers

When you reach for it

Dividing turns any fraction into a decimal that either stops or repeats, as Terminating and repeating decimals showed. This lesson runs the other way: you are handed a repeating decimal, say 0.\overline{57} = 0.575757\ldots, and you want the fraction it equals.

A terminating decimal is easy to turn back, because place value already writes it as a fraction: 0.57 is \displaystyle \frac{57}{100}. A repeating decimal has no last place, so that reading fails. The earlier lesson gave a shortcut, the block over nines, which says \displaystyle 0.\overline{57} = \frac{57}{99}, and checked it by dividing. This lesson gives the reason the shortcut works, and a method that also handles the decimals the shortcut does not fit directly: blocks that start late, whole-number parts, negatives, and the puzzling 0.\overline{9}.

The whole method is one idea. Multiply the decimal by a power of ten so that its digits slide along until the repeating tail lines up with the tail of the original. Two numbers with the same tail differ by an ordinary number, so subtracting removes the part that never ends, and what is left is a short equation to solve.

It is taught over two days:

  • Day 1: blocks that start straight after the decimal point, one digit long and longer.
  • Day 2: blocks that start later, which need two multiplications; answers as mixed numbers; and why 0.\overline{9} = 1.

The procedure

Day 1: a block that starts straight after the point

One repeating digit. Take 2.\overline{3} = 2.333\ldots, and call the number x:

x = 2.333\ldots

Multiply both sides by 10. Multiplying by ten moves every digit one place to the left, and multiplying both sides of an equation by the same number keeps it true (the multiplication property of equality):

10x = 23.333\ldots

Now compare 23.333\ldots with 2.333\ldots. After the point they are the same: every place, as far as you go, holds a 3. So the two numbers differ by exactly their whole-number parts, 23 - 2 = 21, and

23.333\ldots = 21 + 2.333\ldots = 21 + x

Put that into the equation for 10x:

10x = 21 + x

The never-ending tail has gone. What is left is an ordinary equation with the unknown on both sides, which is a look ahead to equations with variables on both sides; here it takes one step to bring the x terms together. Subtract x from both sides (the subtraction property of equality), and combine 10x - x into 9x:

9x = 21

Now it is a one-step equation. Divide both sides by 9, and write the fraction in lowest terms by dividing top and bottom by 3:

x = \frac{21}{9} = \frac{7}{3}

Check by dividing: 7 \div 3 = 2 remainder 1, and each step after that is 10 \div 3 = 3 remainder 1, so \displaystyle \frac{7}{3} = 2.333\ldots as it should.

The same work is often set out as a subtraction of one line from another:

\begin{aligned} 10x &= 23.333\ldots \\ x &= 2.333\ldots \end{aligned}

Subtract the second line from the first, left side from left side and right side from right side, and 9x = 21 comes out directly. That is the same step as before. The second line says that x and 2.333\ldots are equal, so taking x from one side of the first line and 2.333\ldots from the other takes away equal amounts, and the first line stays true.

Why ten. The number 10 was chosen because the block is one digit long. Shifting by one place moves each 3 into the place where the next 3 was, and since every digit of the tail is the same, the shifted tail matches the old one exactly.

Longer blocks. Take 0.\overline{24} = 0.242424\ldots. The block 24 has two digits, so shift by two places, multiplying by 100:

\begin{aligned} x &= 0.242424\ldots \\ 100x &= 24.242424\ldots \end{aligned}

After the point both read 2, 4, 2, 4, \ldots in the same places, so 100x = 24 + x. Subtract x from both sides and divide by 99:

99x = 24 \qquad\Longrightarrow\qquad x = \frac{24}{99} = \frac{8}{33}

The power must match the block. Watch what happens if you multiply by 10 instead: 10x = 2.424242\ldots. After the point that reads 4, 2, 4, 2, \ldots, while x reads 2, 4, 2, 4, \ldots. The tails are out of step, so subtracting does not remove them:

10x - x = 2.424242\ldots - 0.242424\ldots = 2.181818\ldots

That gives 9x = 2.\overline{18}, which still has a repeating decimal in it, and nothing has been gained. Figure 1 sets the two attempts side by side. A block of k digits needs a shift of k places, so multiply by 10^k, a 1 followed by k zeros.

2 4 . 2 4 2 4 2 4 ...
100x =
0 . 2 4 2 4 2 4 ...
x =
2 4
99x =
multiply by 100: tails match 2 . 4 2 4 2 4 2 ...
10x =
0 . 2 4 2 4 2 4 ...
x =
2 . 1 8 1 8 1 8 ...
9x =
multiply by 10: they do not
Figure 1Shift by the length of the block and the two tails match digit for digit, so they cancel. Shift by any other amount and a repeating tail survives the subtraction.

What this proves. Let x = 0.\overline{B}, where the block has k digits and reads as the whole number B. Multiplying by 10^k moves exactly one copy of the block in front of the point and leaves the same tail behind it, so

10^k x = B + x

Subtract x from both sides to get (10^k - 1)x = B, and divide:

x = \frac{B}{10^k - 1}

The number 10^k - 1 is written as k nines: 9, 99, 999 and so on. That is the block over nines from Terminating and repeating decimals, now with a reason behind it rather than a check. When there is a whole-number part, as in 2.\overline{3}, the same subtraction leaves the number in front of the tail in 10^k x minus the whole-number part of x: there it was 23 - 2 = 21.

Day 2: a block that starts late, mixed numbers, and repeating nines

A block that starts late. In 0.4\overline{6} = 0.4666\ldots the 4 happens once and only the 6 repeats. Multiplying by 10 once is not enough on its own: 10x = 4.666\ldots has a tail of sixes, but x has the tail 4, 6, 6, \ldots, so they still do not match.

The fix is to compare two shifted copies of x rather than a shifted copy with x itself. Multiply by 10 to move the digit that does not repeat to the left of the point, so that the copy repeats from the point on. Then shift that copy one block further, here one more place, which is multiplying x by 100:

\begin{aligned} 10x &= 4.666\ldots \\ 100x &= 46.666\ldots \end{aligned}

Both tails are all sixes (Figure 2), so 46.666\ldots = 42 + 4.666\ldots, that is,

100x = 42 + 10x

Subtract 10x from both sides, then divide by 90:

90x = 42 \qquad\Longrightarrow\qquad x = \frac{42}{90} = \frac{7}{15}

dividing top and bottom by 6. Check: 7 \div 15 gives 0.4 remainder 10, and from then on each step is 100 \div 15 = 6 remainder 10, so \displaystyle \frac{7}{15} = 0.4\overline{6}.

4 6 . 6 6 6 6 6 6 ...
100x =
4 . 6 6 6 6 6 6 ...
10x =
4 2
90x =
both tails are all 6s
Figure 2When the block starts late, compare two shifted copies of x, neither of them x itself. Here 100x and 10x both have a tail of sixes.

In general, if m digits come between the point and the start of the block, and the block has k digits, multiply by 10^m and by 10^{m + k}. The first moves the digits that do not repeat out of the way; the second shifts one block further. Subtracting leaves

(10^{m + k} - 10^m)\,x = \text{a whole number}

and 10^{m + k} - 10^m is written as k nines followed by m zeros. For 0.4\overline{6}, with m = 1 and k = 1, that is 100 - 10 = 90. Why this is the right pair, and not, say, 1 and 10, is exercise 24.

Mixed numbers. A decimal with a whole-number part can go through the method whole, as 2.\overline{3} did. Often it is simpler to keep the whole number to one side: write 3.4\overline{6} as 3 + 0.4\overline{6}, change only the decimal part, and read off the mixed number \displaystyle 3\frac{7}{15}. Both routes give the same value, and Example 6 works one each way. If an improper fraction is wanted, convert at the end (Mixed numbers and improper fractions: rewriting and comparing): \displaystyle 3\frac{7}{15} = \frac{52}{15}.

Repeating nines. Run the method on a decimal whose block is 9 and the answer comes out as a terminating decimal, starting with 0.\overline{9} = 1. That surprises most people the first time, and Example 7 shows both why the method says so and why it is right.

Worked examples

Example 1

Day 1: one repeating digit, and lowest terms

Write 5.\overline{6} as a fraction in lowest terms.

Solution

Let x = 5.\overline{6} = 5.666\ldots. The block is one digit, so multiply both sides by 10:

10x = 56.666\ldots

After the point, 56.666\ldots and 5.666\ldots are the same, so they differ by 56 - 5 = 51, and 10x = 51 + x. Subtract x from both sides:

9x = 51

Divide both sides by 9. Both 51 and 9 are multiples of 3, so the fraction simplifies:

x = \frac{51}{9} = \frac{17}{3}

Check: 17 \div 3 = 5 remainder 2, and then 20 \div 3 = 6 remainder 2 at every step, so \displaystyle \frac{17}{3} = 5.666\ldots

Example 2

Day 1: a two-digit block

Write 0.\overline{57} as a fraction in lowest terms.

Solution

Let x = 0.575757\ldots. The block 57 has two digits, so shift by two places:

100x = 57.575757\ldots

After the point, 100x and x have the same digits in the same places, so 100x = 57 + x. Subtract x from both sides and divide by 99:

99x = 57 \qquad\Longrightarrow\qquad x = \frac{57}{99}

Since 57 = 3 \times 19 and 99 = 3 \times 33, divide top and bottom by 3:

0.\overline{57} = \frac{19}{33}

The \displaystyle \frac{57}{99} in the middle is exactly what the block over nines predicts. The method has reached it by a route that explains it.

Example 3

Day 1: a three-digit block

Write 0.\overline{351} as a fraction in lowest terms.

Solution

Let x = 0.351351\ldots. The block has three digits, so multiply by 10^3 = 1000:

1000x = 351.351351\ldots = 351 + x

Subtract x from both sides and divide by 999:

999x = 351 \qquad\Longrightarrow\qquad x = \frac{351}{999}

To simplify, factor both numbers: 351 = 27 \times 13 and 999 = 27 \times 37. Dividing top and bottom by 27,

0.\overline{351} = \frac{13}{37}

Check: dividing 13 by 37 gives the digits 3, 5, 1 with remainders 19, 5 and 13. The remainder 13 is the number you started with, so the digits 351 come round again forever.

Example 4

Day 1: a negative number whose block starts with zero

Write -2.\overline{06} as a fraction in lowest terms.

Solution

The minus sign applies to the whole decimal, so convert 2.\overline{06} and put the sign back at the end. Let y = 2.\overline{06} = 2.060606\ldots.

The block is 06. The 0 is part of it, so the block has two digits and the shift is two places. Multiplying by 10 instead would give 20.606\ldots, whose tail 6, 0, 6, 0, \ldots is out of step with 0, 6, 0, 6, \ldots. So multiply by 100:

100y = 206.060606\ldots

The tails match, and the whole-number parts are 206 and 2, so 100y = 204 + y. Subtract y from both sides and divide by 99:

99y = 204 \qquad\Longrightarrow\qquad y = \frac{204}{99} = \frac{68}{33}

dividing top and bottom by 3. Therefore

-2.\overline{06} = -\frac{68}{33}

Working with x = -2.\overline{06} directly also works: 100x = -206.\overline{06}, the equation becomes 99x = -204, and dividing by 99 gives the same answer. Keeping the sign aside just avoids carrying it through every line. Check: \displaystyle \frac{68}{33} = 2 + \frac{2}{33}, and \displaystyle \frac{2}{33} = \frac{6}{99} = 0.\overline{06} by the block over nines.

Example 5

Day 2: a block that starts late

Write 0.1\overline{48} as a fraction in lowest terms.

Solution

Let x = 0.1484848\ldots. One digit, the 1, comes before the block, and the block 48 has two digits. So m = 1 and k = 2: multiply by 10^1 = 10 to move the 1 in front of the point, and by 10^3 = 1000 to move one more block across as well.

\begin{aligned} 10x &= 1.484848\ldots \\ 1000x &= 148.484848\ldots \end{aligned}

Both tails read 4, 8, 4, 8, \ldots, so the two numbers differ by 148 - 1 = 147:

1000x = 147 + 10x

Subtract 10x from both sides and divide by 990:

990x = 147 \qquad\Longrightarrow\qquad x = \frac{147}{990} = \frac{49}{330}

dividing top and bottom by 3. Since 49 = 7^2 and 330 = 2 \times 3 \times 5 \times 11, there is no common factor left.

Comparing x itself with 1000x would not have worked: the tail of x starts 4, 8, 4, 8 only after the 1, so 1000x - x = 148.33636\ldots is not a whole number. The two multiplications are what make both tails start at the point.

Example 6

Day 2: a mixed number, two ways

Write 1.4\overline{09} as a mixed number.

Solution

All at once. Let x = 1.4090909\ldots. One digit comes before the two-digit block, so multiply by 10 and by 1000:

\begin{aligned} 10x &= 14.090909\ldots \\ 1000x &= 1409.090909\ldots \end{aligned}

The tails match, so 1000x = 1395 + 10x, and subtracting 10x gives 990x = 1395. The greatest common factor of 1395 and 990 is 45, so

x = \frac{1395}{990} = \frac{31}{22} = 1\frac{9}{22}

Whole number aside. Write 1.4\overline{09} = 1 + 0.4\overline{09} and convert only y = 0.4\overline{09}. The same two shifts give 10y = 4.\overline{09} and 1000y = 409.\overline{09}, so

990y = 405 \qquad\Longrightarrow\qquad y = \frac{405}{990} = \frac{9}{22}

dividing by 45. Then \displaystyle 1.4\overline{09} = 1\frac{9}{22}, the same answer, with smaller numbers along the way.

Example 7

Day 2: repeating nines

(a) Use the method to write 0.\overline{9} as a fraction. (b) Write 2.1\overline{9} as a fraction in lowest terms.

Solution

(a) Let x = 0.999\ldots. The block is one digit, so

10x = 9.999\ldots = 9 + x

Subtract x from both sides: 9x = 9, so x = 1. Every step is one the method has used all lesson, so

0.\overline{9} = 1

This is not an approximation. Here are two other ways to see that nothing is lost.

First, the gap. 1 - 0.9 = 0.1, 1 - 0.99 = 0.01, 1 - 0.999 = 0.001, and 0.\overline{9} is at least as close to 1 as each of these, since it has all their nines and more. So the gap between 0.\overline{9} and 1 is smaller than 0.1, smaller than 0.01, smaller than 0.001, and smaller than one in any decimal place you name. The only number that is not negative and is smaller than all of those is 0. The gap is 0, so the two numbers are equal.

Second, a known fraction. Dividing 1 by 3 gives \displaystyle \frac{1}{3} = 0.\overline{3}. Three of them make 1; three of the decimals make 0.\overline{9}, since 3 \times 3 = 9 in every place with no carrying. Two names, one number.

Neither view is a separate proof. Each one, like the method itself, treats an endless decimal as a number that can be multiplied, subtracted and compared place by place. That is right, but saying exactly what an endless decimal is, and proving it, takes limits, which come in a later course. What the three views show at this level is that they agree.

(b) Let x = 2.1999\ldots. One digit comes before the block, so multiply by 10 and 100:

\begin{aligned} 10x &= 21.999\ldots \\ 100x &= 219.999\ldots \end{aligned}

So 100x = 198 + 10x, and subtracting 10x gives 90x = 198:

x = \frac{198}{90} = \frac{11}{5}

dividing top and bottom by 18. And \displaystyle \frac{11}{5} = 2.2: the decimal 2.1\overline{9} is a second name for 2.2, just as 0.\overline{9} is a second name for 1. Every terminating decimal other than 0 has such a second name.

Boundaries

The decimal has to repeat, and you have to know its block. The method lines up a tail with a shifted copy of itself, which needs the same block forever. A decimal such as 0.2022022202222\ldots, where each run of 2s is one longer than the last, never settles into a block, and no power of ten makes its tail match. Such a decimal is not a fraction at all; it is irrational. Nor does a calculator display settle the question: a screen showing 0.3157894737 has been cut off and rounded, and the screen alone cannot say what comes next.

The shift must be a whole number of blocks. Multiplying by 10^k for a block of k digits works. So does shifting by two blocks or three: 10\,000 \times 0.\overline{24} = 2424.\overline{24} gives 9999x = 2424, and \displaystyle \frac{2424}{9999} simplifies to the same \displaystyle \frac{8}{33}. Any other shift leaves the tails out of step, as Figure 1 shows.

The equation must be solved exactly. The coefficient of x is a string of nines, or nines followed by zeros, and it is never 0, so dividing by it is always allowed. Division leaves a fraction of two integers, which still has to be put in lowest terms.

A terminating decimal does not need the method. Place value gives its fraction directly: \displaystyle 0.375 = \frac{375}{1000} = \frac{3}{8}. Written with repeating nines, as 0.374\overline{9}, it goes through the method and comes out at the same \displaystyle \frac{3}{8}.

A negative sign stays outside. -2.\overline{06} means -(2.060606\ldots); the minus applies to the whole number, not to the tail alone.

Where this goes next

Together with dividing, this lesson closes a loop. Every fraction gives a decimal that stops or repeats, and now every decimal that stops or repeats gives back a fraction of two integers. So the rational numbers are exactly the decimals that stop or repeat, which is the full statement in What makes a number rational, and Which fractions give terminating decimals says which of the two you get. The decimals left over, those that neither stop nor repeat, are the irrational numbers, such as \displaystyle \sqrt{2} and \pi; together the two kinds fill the number line.

The step “bring the x terms to one side” here was a single subtraction. Equations with the unknown on both sides, and with more going on in each, are the subject of Equations with variables on both sides.

Later, 0.\overline{24} will be read in a third way, as an endless sum \displaystyle \frac{24}{100} + \frac{24}{10\,000} + \frac{24}{1\,000\,000} + \cdots. Adding up such a sum is Infinite geometric series, and the trick inside it, multiply the whole sum by a fixed number and subtract so the endless tail cancels, is the trick of this lesson.

Exercises

Day 1: one repeating digit

Write each as a fraction in lowest terms.

  1. 7.\overline{7}
  2. 3.\overline{4}
  3. 8.\overline{3}

Day 1: longer blocks

Write each as a fraction in lowest terms.

  1. 0.\overline{93}
  2. 0.\overline{65}
  3. 0.\overline{216}
  4. 0.\overline{027}
  5. 5.\overline{43}
  6. -1.\overline{3}
  7. 0.\overline{285714}

Day 1: reasoning

  1. Aurelie is converting x = 0.\overline{61}. She multiplies by 10 and subtracts x. What does she get for 10x - x, why has it not removed the repeating part, and what should she do instead? Finish the conversion.
  2. Show that for any block B of k digits, \displaystyle 0.\overline{B} = \frac{B}{10^k - 1}, and explain in words why multiplying by 10^k is what makes it work.

Day 2: blocks that start late

Write each as a fraction in lowest terms.

  1. 0.1\overline{3}
  2. 0.9\overline{4}
  3. 0.0\overline{7}
  4. 0.5\overline{21}
  5. 0.02\overline{3}

Day 2: mixed numbers

Write each as a mixed number in lowest terms.

  1. 2.8\overline{3}
  2. 1.2\overline{3}
  3. 6.\overline{03}

Day 2: repeating nines

Write each as a fraction in lowest terms, or as an integer.

  1. 0.7\overline{9}
  2. 4.\overline{9}

Day 2: reasoning

  1. Benedek says that 0.\overline{9} is the largest number less than 1. Explain why he is wrong in two ways: that 0.\overline{9} is not less than 1, and that no largest number less than 1 exists.
  2. A decimal has m digits between the point and the start of a block of k digits. Explain why the method multiplies by 10^m and 10^{m + k}, and not by 1 and 10^k, and say what the number multiplying x looks like after the subtraction.
  3. Explain why every repeating decimal is a rational number.
Answers
  1. \displaystyle \frac{70}{9}. 10x = 77.\overline{7} = 70 + x, so 9x = 70.
  2. \displaystyle \frac{31}{9}. 10x = 34.\overline{4} = 31 + x, so 9x = 31.
  3. \displaystyle \frac{25}{3}. 10x = 83.\overline{3} = 75 + x, so 9x = 75 and \displaystyle x = \frac{75}{9} = \frac{25}{3}.
  4. \displaystyle \frac{31}{33}. 100x = 93.\overline{93} = 93 + x, so 99x = 93 and \displaystyle \frac{93}{99} = \frac{31}{33}.
  5. \displaystyle \frac{65}{99}. 99x = 65, and 65 = 5 \times 13 shares no factor with 99 = 9 \times 11.
  6. \displaystyle \frac{8}{37}. 1000x = 216 + x, so 999x = 216, and \displaystyle \frac{216}{999} = \frac{27 \times 8}{27 \times 37}.
  7. \displaystyle \frac{1}{37}. The block 027 has three digits, so 1000x = 27 + x, 999x = 27, and \displaystyle \frac{27}{999} = \frac{1}{37}.
  8. \displaystyle \frac{538}{99}. 100x = 543.\overline{43} = 538 + x, so 99x = 538. Since 538 = 2 \times 269, it shares no factor with 99. As a mixed number, \displaystyle 5\frac{43}{99}.
  9. \displaystyle -\frac{4}{3}. For y = 1.\overline{3}, 10y = 13 + y, so 9y = 12 and \displaystyle y = \frac{4}{3}. Put the sign back.
  10. \displaystyle \frac{2}{7}. 10^6 x = 285714 + x, so 999999x = 285714. Since 999999 = 7 \times 142857 and 285714 = 2 \times 142857, the fraction is \displaystyle \frac{2}{7}.
  11. 10x - x = 6.161616\ldots - 0.616161\ldots = 5.\overline{54}, so 9x = 5.\overline{54}, still a repeating decimal. Shifting by one place puts the tail 1, 6, 1, 6, \ldots against 6, 1, 6, 1, \ldots, out of step. The block has two digits, so multiply by 100: 100x = 61 + x, 99x = 61, and \displaystyle x = \frac{61}{99}.
  12. Let x = 0.\overline{B}. Multiplying by 10^k moves every digit k places left, which carries exactly one copy of the block in front of the point; the digits behind the point are then the block repeated forever, the same as in x. So 10^k x = B + x. Subtracting x gives (10^k - 1)x = B, and 10^k - 1 is not 0, so \displaystyle x = \frac{B}{10^k - 1}.
  13. \displaystyle \frac{2}{15}. 100x = 13.\overline{3} and 10x = 1.\overline{3}, so 90x = 12 and \displaystyle \frac{12}{90} = \frac{2}{15}.
  14. \displaystyle \frac{17}{18}. 100x = 94.\overline{4} and 10x = 9.\overline{4}, so 90x = 85 and \displaystyle \frac{85}{90} = \frac{17}{18}.
  15. \displaystyle \frac{7}{90}. 100x = 7.\overline{7} and 10x = 0.\overline{7}, so 90x = 7.
  16. \displaystyle \frac{86}{165}. 1000x = 521.\overline{21} and 10x = 5.\overline{21}, so 990x = 516 and \displaystyle \frac{516}{990} = \frac{86}{165}, dividing by 6.
  17. \displaystyle \frac{7}{300}. Two digits come before the block: 1000x = 23.\overline{3} and 100x = 2.\overline{3}, so 900x = 21 and \displaystyle \frac{21}{900} = \frac{7}{300}.
  18. \displaystyle 2\frac{5}{6}. For y = 0.8\overline{3}: 100y = 83.\overline{3}, 10y = 8.\overline{3}, so 90y = 75 and \displaystyle y = \frac{5}{6}.
  19. \displaystyle 1\frac{7}{30}. For y = 0.2\overline{3}: 90y = 23 - 2 = 21, so \displaystyle y = \frac{21}{90} = \frac{7}{30}.
  20. \displaystyle 6\frac{1}{33}. For y = 0.\overline{03}: 100y = 3 + y, so 99y = 3 and \displaystyle y = \frac{1}{33}.
  21. \displaystyle \frac{4}{5}, which is 0.8. 100x = 79.\overline{9} and 10x = 7.\overline{9}, so 90x = 72 and \displaystyle \frac{72}{90} = \frac{4}{5}.
  22. 5. 10x = 49.\overline{9} = 45 + x, so 9x = 45 and x = 5.
  23. The method gives 0.\overline{9} = 1 exactly: 10x = 9 + x, so 9x = 9. Also, the gap 1 - 0.\overline{9} is smaller than 0.1, 0.01, 0.001 and every such place value, so it is 0. As for a largest number below 1: if c is any number less than 1, the number halfway between, \displaystyle \frac{c + 1}{2}, is still less than 1 but bigger than c. So whatever number is proposed, there is a larger one still below 1, and no largest one exists.
  24. The tail of x itself begins with the m digits that do not repeat, so no shift of x lines up with x. Multiplying by 10^m moves those digits in front of the point, leaving a tail that is the block repeated from the point on; multiplying by 10^{m + k} does the same and moves one block further, so the two tails match. Subtracting gives (10^{m + k} - 10^m)x equal to a whole number, and 10^{m + k} - 10^m is written as k nines followed by m zeros, such as 990 for m = 1, k = 2.
  25. For any repeating decimal the method finds two powers of ten whose multiples of x have the same tail (one of them may be 10^0 = 1, that is x itself). Subtracting cancels the tails and leaves (a nonzero whole number) \times x = (an integer), since the difference of two decimals with equal tails is an integer. Dividing writes x as one integer over another, which is what rational means. A negative decimal is the negative of such a fraction, which is still rational.
kg1128 · updated 2026-10-09 · CC-BY-SA-4.0