How do you convert a fraction into a decimal?
1 Answer
Long divide the numerator by the denominator until the remainder repeats or you have as many digits as you want.
Explanation:
One way which is guaranteed to work is to long divide the numerator by the denominator.
Since the running remainder is a non-negative integer that is always less than the divisor, it will eventually repeat, at some time after you have exhausted the digits from the dividend.
So the decimal will always repeat or terminate (i.e. a repeating
For example, to find the decimal representation of
In this simple example, the remainder
#1/7 = 0.142857142857... = 0.bar(142857)#
Here's a much longer example to calculate the exact decimal representation of
Notice that the remainder
#114/268 = 0.4bar(253731343283582089552238805970149)#
In this particular case, we could have identified the common factor
If the simplest form of the fraction has a denominator whose only prime factors are