Math Core

Lesson 1.4 · Real Numbers

Repeating decimals as fractions

Every repeating decimal is rational, so it must be equal to some fraction. But which one? You can't just put the digits over 1010 or 100100, because the digits never stop. This lesson shows a neat algebra trick that makes the endless part disappear.

The big idea: subtract away the repeating part

Let's find the fraction equal to 0.7‾=0.777…0.\overline{7} = 0.777\ldots

Call the number xx. Multiplying by 1010 shifts every digit one place to the left, but the tail of 77s still goes on forever:

10x=7.777…x=0.777…\begin{aligned} 10x &= 7.777\ldots \\ x &= 0.777\ldots \end{aligned}

Both numbers have exactly the same endless tail after the decimal point. So when you subtract, the tails cancel:

10x−x=7.777…−0.777…9x=7x=79\begin{aligned} 10x - x &= 7.777\ldots - 0.777\ldots \\ 9x &= 7 \\ x &= \frac{7}{9} \end{aligned}

So 0.7‾=790.\overline{7} = \dfrac{7}{9}. Check by dividing: 7÷9=0.777…7 \div 9 = 0.777\ldots It works.

Converting a repeating decimal to a fraction

  1. Let xx equal the repeating decimal.
  2. Multiply by 1010 if one digit repeats, by 100100 if two digits repeat, by 10001000 if three repeat, and so on. This lines up the repeating parts.
  3. Subtract xx from the new equation so the repeating tails cancel.
  4. Solve for xx and simplify the fraction.

Longer repeating blocks

If two digits repeat, multiplying by 1010 doesn't line up the tails. You need to shift by the whole block, so multiply by 100100.

Worked example: A two-digit block

Write 0.36‾0.\overline{36} as a fraction in lowest terms.

Let x=0.363636…x = 0.363636\ldots Two digits repeat, so multiply by 100100:

100x=36.363636…x=0.363636…99x=36x=3699=411\begin{aligned} 100x &= 36.363636\ldots \\ x &= 0.363636\ldots \\ 99x &= 36 \\ x &= \frac{36}{99} = \frac{4}{11} \end{aligned}

Check: 4÷11=0.3636…4 \div 11 = 0.3636\ldots Correct.

Tip

Notice a pattern: 0.7‾=790.\overline{7} = \dfrac{7}{9} and 0.36‾=36990.\overline{36} = \dfrac{36}{99}. When the repeating block starts right after the decimal point, the fraction is the block over the same number of 99s. For example, 0.123‾=1239990.\overline{123} = \dfrac{123}{999}. Always simplify afterward.

Decimals with a whole-number part

A number like 2.5‾2.\overline{5} is just 2+0.5‾2 + 0.\overline{5}. You can convert the decimal part and add, or use the same method on the whole number.

Worked example: A whole-number part

Write 2.5‾2.\overline{5} as a fraction.

Let x=2.555…x = 2.555\ldots Then 10x=25.555…10x = 25.555\ldots Subtract:

10x−x=25.555…−2.555…9x=23x=239\begin{aligned} 10x - x &= 25.555\ldots - 2.555\ldots \\ 9x &= 23 \\ x &= \frac{23}{9} \end{aligned}

Check with the other way: 2+59=189+59=2392 + \dfrac{5}{9} = \dfrac{18}{9} + \dfrac{5}{9} = \dfrac{23}{9}. Both methods agree.

When the repeat starts later

In 0.16‾=0.1666…0.1\overline{6} = 0.1666\ldots, the 11 does not repeat. The trick still works; you just need two equations whose tails match.

Worked example: A delayed repeat

Write 0.16‾0.1\overline{6} as a fraction in lowest terms.

Let x=0.1666…x = 0.1666\ldots

  • 10x=1.666…10x = 1.666\ldots (the repeating part now starts right after the decimal point)
  • 100x=16.666…100x = 16.666\ldots (shifted one more place; same tail)

Subtract the first from the second:

100x−10x=16.666…−1.666…90x=15x=1590=16\begin{aligned} 100x - 10x &= 16.666\ldots - 1.666\ldots \\ 90x &= 15 \\ x &= \frac{15}{90} = \frac{1}{6} \end{aligned}

Check: 1÷6=0.1666…1 \div 6 = 0.1666\ldots Correct.

Common mistake

The shortcut "block over 99s" only works when the repeat starts right after the decimal point. 0.16‾0.1\overline{6} is not 1699\dfrac{16}{99} or 1690\dfrac{16}{90}. When some digits don't repeat, use the subtraction method and make sure the two numbers you subtract have exactly the same tail.

A surprising result

What fraction is 0.9‾=0.999…0.\overline{9} = 0.999\ldots? Use the method: 10x=9.999…10x = 9.999\ldots, so 9x=99x = 9 and x=1x = 1. The decimal 0.999…0.999\ldots is exactly equal to 11. It's not "just less than" 11: there is no number that fits between them.

Practice

Practice 1

Write 0.4‾0.\overline{4} as a fraction.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

To write 0.81‾0.\overline{81} as a fraction, what should you multiply x=0.818181…x = 0.818181\ldots by first?

Practice 3

Write 0.81‾0.\overline{81} as a fraction in lowest terms.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Write 4.1‾4.\overline{1} as a fraction.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Write 0.15‾0.\overline{15} as a fraction in lowest terms.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Write 0.83‾0.8\overline{3} as a fraction in lowest terms.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Write 0.123‾0.\overline{123} as a fraction in lowest terms.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

Which is equal to 0.3‾+0.6‾0.\overline{3} + 0.\overline{6}?