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 or , 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
Call the number . Multiplying by shifts every digit one place to the left, but the tail of s still goes on forever:
Both numbers have exactly the same endless tail after the decimal point. So when you subtract, the tails cancel:
So . Check by dividing: It works.
Converting a repeating decimal to a fraction
- Let equal the repeating decimal.
- Multiply by if one digit repeats, by if two digits repeat, by if three repeat, and so on. This lines up the repeating parts.
- Subtract from the new equation so the repeating tails cancel.
- Solve for and simplify the fraction.
Longer repeating blocks
If two digits repeat, multiplying by doesn't line up the tails. You need to shift by the whole block, so multiply by .
Worked example: A two-digit block
Write as a fraction in lowest terms.
Let Two digits repeat, so multiply by :
Check: Correct.
Tip
Notice a pattern: and . When the repeating block starts right after the decimal point, the fraction is the block over the same number of s. For example, . Always simplify afterward.
Decimals with a whole-number part
A number like is just . You can convert the decimal part and add, or use the same method on the whole number.
Worked example: A whole-number part
Write as a fraction.
Let Then Subtract:
Check with the other way: . Both methods agree.
When the repeat starts later
In , the does not repeat. The trick still works; you just need two equations whose tails match.
Worked example: A delayed repeat
Write as a fraction in lowest terms.
Let
- (the repeating part now starts right after the decimal point)
- (shifted one more place; same tail)
Subtract the first from the second:
Check: Correct.
Common mistake
The shortcut "block over s" only works when the repeat starts right after the decimal point. is not or . 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 ? Use the method: , so and . The decimal is exactly equal to . It's not "just less than" : there is no number that fits between them.
Practice
Write as a fraction.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
To write as a fraction, what should you multiply by first?
Write as a fraction in lowest terms.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Write as a fraction.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Write as a fraction in lowest terms.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Write as a fraction in lowest terms.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Write as a fraction in lowest terms.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which is equal to ?