Convert periodic decimal number to fraction or mixed number
First you have to look at whether the periodic part starts directly at the first decimal place or behind it. If it starts directly at the first decimal place, this is the easy case. If it starts at a later decimal place, a little more effort is needed.
Periodic part starts at first decimal place:
Let us first consider the case where the period bar starts directly at the first decimal place and where there is just a 0 in front of the decimal point. Then the decimal places are written into the numerator and as many 9s are appended to the denominator as the number has decimal places below the bar.
Examples:
0.12 has 2 decimal places below the bar for the periodic part. So
0.12 is converted into
. This can still be reduced by dividing the numerator and denominator by 3 and you get
.
0.3 has one decimal place below the bar for the periodic part. So the number is converted into
. The fraction can be reduced by dividing the numerator and denominator by 3 and you get
.
0.125 has 3 decimal places below the bar for the periodic part so it is converted into
.
Now the case where the bar starts directly at the first decimal place, but the number has at least one digit before the decimal point not equal to 0. First convert the number into a mixed number by first converting the decimal places into a fraction as described above and then writing the digits before the decimal point as an integer in front of the fraction. For example, one converts
15.125 into
15or
5.3 into
5= 5.
If you want to represent the number as a fraction rather than a mixed number, you still have to convert the mixed number to a improper fraction by converting the integer part to a fraction that has the same denominator as the fraction and then add the two fractions.
Example:
5.3 was converted to the mixed number
5. Now the 5 has to be converted into a fraction with denominator 3 and then the two fractions are added.
Periodic part starts after first decimal place:
Now we come to the case that the vinculum starts behind the first decimal place. In this case, the comma must be shifted to the right until it is directly in front of the digit above which the vinculum begins. This is done by multiplying the decimal number by a power of 10 (10, 100, 1000, 10000, ...). For example, if the number 1.221 is to be converted into a fraction, then multiply the number by 100 to get 122.1. This periodic decimal number is converted to a fraction as described above. At the end, you still have to divide the fraction by the number it was multiplied by at the beginning to move the decimal point.
Example:
1.221 is to be converted into a fraction.
First, multiply by 100 to shift the decimal point so that it is directly in front of the number above which the vinculum begins. This results in 122,1.
Now the 122.1 is converted to a mixed number and then to a fraction::
Now the fraction still has to be divided by 100. This is achieved by multiplying the denominator by 100:
This can still be converted to a mixed number:
=+= 1