Converting Between Fractions and Decimals
Learning goals
- Convert a decimal to a fraction by reading its last place as the denominator
- Divide numerator by denominator to turn any fraction into a decimal
- Scale to a denominator of ten or a hundred instead of dividing
- Predict whether a fraction terminates from the prime factors of its denominator
- Explain why a non-terminating decimal must repeat, since a remainder must come back
A decimal is already a fraction
You saw in the place-value lesson that the digits after the decimal point are tenths, hundredths, and thousandths. That single fact is the whole method for turning a decimal into a fraction.
Take . The is four tenths and the is nine hundredths, so written out it is . Put both pieces over a hundred and add:
The two-digit string "" lands directly on top of , which is the shortcut. A decimal that ends always works this way, because its last place names a denominator every digit can be written over. The rule is short: the number of digits after the point is the number of zeros in the denominator.
A fraction read straight off the digits may not yet be in lowest terms, so the conversion has a second half. A fraction is in lowest terms when its top and bottom share no factor larger than . Reduce by dividing the top and bottom by their greatest common factor, the same simplifying you did in the fractions chapter.
Worked example 1 Write as a fraction in lowest terms
There are two digits after the point, so the denominator is a hundred and the digits sit on top:
Now reduce. The greatest common factor of and is , so divide the top and bottom by :
Since and share no common factor larger than , the fraction is in lowest terms, and that is the answer.
A number with a whole part converts the same way: leave the whole part alone and convert only the decimal piece. The result is a mixed number you can read off directly. For instance is .
Check your understanding
Write as a fraction in lowest terms.
Two digits follow the point, so the denominator is a hundred: . Reduce by dividing the top and bottom by their greatest common factor, which is .
Since and share no factor larger than , is in lowest terms. The form is equal but not reduced, and is not reduced either.
A fraction is a division waiting to happen
Going the other direction, from a fraction to a decimal, rests on a fact you have known since the fractions chapter. The fraction bar means divide.
Take . The bar says divide by . Since does not go into , write in the ones place, bring the point up, and continue dividing into :
Eight goes into tenths three times () with a remainder of tenths, which is hundredths. Eight goes into seven times () with a remainder of hundredths, which is thousandths. Eight goes into exactly five times with nothing left over, so the division ends and the decimal is .
Every fraction goes the same way. The fraction is exactly , the size of each share when wholes are divided equally among groups. So to write a fraction as a decimal, carry out that division, and the decimal long division from the previous lesson is the tool.
Divide the numerator by the denominator, appending zeros after the point in the numerator whenever the remainder has not cleared. Keep the decimal point in the quotient lined up above the point in the dividend. The remainder does not always clear, and the last section of this lesson says which fractions it clears for.
Why dividing the numerator by the denominator gives the decimal#
Run the whole argument on first. Split wholes equally among groups. Collecting all four of those shares has to rebuild the you started with. So the value of is the number that gives when you take of it, which is what asks for. Long division answers that a place at a time. Four goes into twice, leaving over. That becomes tenths, and four goes into twice, leaving tenths. Those tenths become hundredths, and four goes into exactly five times. The quotient is , and four copies of do rebuild the .
Nothing in that depended on the digits and . The decimal you are looking for is just another name for the value of the fraction, so call that value . By the meaning of the fraction bar, is the number for which . Split into equal shares. Collecting all of those shares must rebuild . But “the number that gives when multiplied by ” is the definition of . So the value of the fraction and the result of the division are the same number, and computing one computes the other.
Long division produces that number one decimal place at a time. How many times does the divisor fit into the current amount? You record that digit in the quotient. Then you carry the leftover remainder to the next place by attaching a zero. Attaching that zero makes the remainder ten times as many of the next smaller place. Every digit you write is the correct count for its place value. Digit by digit, that quotient is the decimal expansion of . So the quotient is the decimal expansion of as well.
Worked example 2 Write as a decimal
The bar means divide, so compute . Eight does not fit into , so the quotient starts with and a point, and the division runs into .
Eight into tenths goes times (), leaving tenths, which become hundredths. Eight into goes times (), leaving hundredths, which become thousandths. Eight into goes exactly times with no remainder:
The remainder reached , so the decimal terminates. A quick sanity check: is just under , and is just under , so the size is right.
A shortcut when the denominator already fits
Long division always works, but you can often skip it. The fraction is the classic case. A hundred is , so multiply the top and bottom by :
That step uses equivalent fractions: multiplying the top and bottom by the same number does not change the value. So is still three quarters, now written with a bottom you can read as hundredths. Once the bottom is a hundred, the top is simply the hundredths, and the decimal is read off directly. This is the same conversion as the long division , just reached by scaling instead of dividing.
The general rule follows. If the denominator divides evenly into ten, a hundred, or a thousand, then scaling the fraction to that denominator turns it into a decimal. You choose the multiplier that makes the denominator into ten, a hundred, or a thousand. You can then read that decimal straight off, with no division of the numerator at all.
Choosing the multiplier is the whole skill here. Take : multiplying top and bottom by gives , which reads straight off as . Multiplying by or by instead gives and , equally true names for the same amount. But and are not ten, a hundred, or a thousand, so neither can be read off as a decimal without more scaling.
Worked example 3 Write as a decimal by scaling
Look at the denominator . It does not divide , but it does divide , because . So multiply the top and bottom by to make the denominator a hundred:
A denominator of a hundred means two decimal places, and the top "" gives those two digits:
This is the reverse of Worked Example 1, where reduced to , a useful check that the two directions agree.
The picture below shows why scaling does not change the amount: cutting each of the five fifths into two makes ten tenths. The shaded portion is unchanged, so and are the same number.
Check your understanding
Which is the quickest correct way to convert to a decimal, and what is the result?
The denominator divides a hundred, since , so scale the fraction by multiplying the top and bottom by .
Scaling to ten will not work because does not divide , and the division is , not .
Terminating or repeating: it depends on the denominator
Some fractions, like , give a decimal that ends. Others do not. Try with long division: gives , where the remainder is at every step, so the s never stop. We write a repeating decimal with a bar over the block of digits that repeats forever:
You can predict which happens before doing any division by looking at the prime factors of the denominator. The dividing line is clean: a fraction in lowest terms terminates exactly when its denominator has no prime factor other than and . If any other prime, such as or , survives in the denominator, the decimal repeats.
Why only the primes 2 and 5 give a terminating decimal#
First see why and are the special primes. Start with the denominators a terminating decimal can have. A decimal with one place is a count of tenths. A decimal with two places is a count of hundredths. Three places count thousandths. So the denominators that can occur are ten, a hundred, a thousand, and so on. They are precisely the ” followed by zeros” numbers. A decimal therefore terminates exactly when the fraction can be rewritten with one of those denominators. Now factor those denominators: ten is , a hundred is , a thousand is three s times three s. Every one of them is built from nothing but s and s. Now think about a fraction in lowest terms. Such a fraction can be scaled up to one of these denominators only if its denominator already divides one of them. And a denominator divides one of them only when it is built from nothing but s and s. For example has denominator , all s and s, and indeed terminates. A denominator does not need both primes, and shows why. Its denominator is , with no at all, yet , so divides a thousand and . But has denominator . That stubborn factor of is the obstacle. It can never be turned into a string of s and s. So no ” followed by zeros” number is a multiple of . The decimal for therefore cannot terminate.
Now see why a non-terminating decimal must repeat rather than wander on forever without a pattern. Watch that happen on , where the starting remainder comes back after two steps. Dividing by gives the digit and leaves a remainder of . Dividing by gives the digit and leaves a remainder of . That is the remainder the division started with, so the next two digits have to be and again. Only the remainders and ever appeared, and the return of the forces that same block of digits again. The decimal is , and it cycles because a remainder came back.
Nothing in that depended on the , so run the same steps for any . Take the long division of by . Every step of it produces a remainder. Each remainder is a whole number. Its possible values run from up to . So the division has only possible remainders to offer. If a remainder of ever appears the division stops and the decimal terminates. Now suppose never appears. That leaves only the values from up to . Then within at most steps some earlier remainder has to show up again. The reason is that there are more steps than there are available remainders. There is nowhere else for the remainders to go. The moment a remainder repeats, look at the digits that follow it. They must match the digits that followed that remainder the first time. That is because each digit is decided entirely by the current remainder. From there the same block of digits cycles forever. That is why a fraction in lowest terms gives one of only two kinds of decimal. Either the decimal ends, or it settles into a repeating block. Nothing else can happen.
To apply the test, reduce the fraction to lowest terms first, then prime factorize the denominator. Reducing first matters: looks like it has the bad factor . But it reduces to , whose denominator is just , so it terminates ().
Worked example 4 Without dividing, decide whether and terminate
Apply the test to each: reduce to lowest terms, then check the prime factors of the denominator.
For , the numerator and denominator share no common factor, so it is already in lowest terms. Prime factorize the denominator:
No prime other than and appears, so terminates. Scaling confirms it, since , giving .
For , the fraction is already in lowest terms, and
The factor of is neither nor , so repeats. Dividing confirms it: .
Check your understanding
Which of these fractions gives a repeating decimal?
Each fraction is already in lowest terms, so prime factorize each denominator and look for a prime other than or .
Only carries an extra prime, the , so repeats. The other three have denominators built only from s and s, so they all terminate.