A shortcut in converting a repeating decimal to a fraction
If the repeating decimal is between 0.1 and 1, and the repeating block is n digits long occurring right at the decimal point, then the fraction (not necessarily reduced) will be the n-digit block over n digits of 9. For example,
* 0.444444... = 4/9 since the repeating block is 4 (a 1-digit block),
* 0.565656... = 56/99 since the repeating block is 56 (a 2-digit block),
* 0.789789... = 789/999 since the repeating block is 789 (a 3-digit block), etc.
If the repeating decimal is between 0 and 0.1, and the repeating n-digit block is preceded only by k digits of 0 (all of which are to the right of the decimal point), then the fraction (not necessarily reduced) will be the n-digit block over the integer consists of n digits of 9 followed by k digits of 0. For example,
* 0.000444... = 4/9000 since the repeating block is 4 and this block is preceded by 3 zeros,
* 0.005656... = 56/9900 since the repeating block is 56 and it is preceded by 2 zeros,
* 0.0789789... = 789/9990 since the repeating block is 789 and it is preceded by 1 zero.
For any repeating decimal not perscribed above, it can be written as a sum of a terminating decimal and a repeating decimal of one of the two above types. For example,
* 1.23444... = 1.23 + 0.00444... = 123/100 + 4/900 = 1107/900 + 4/900 = 1111/900
* 0.3789789 ... = 0.3 + 0.0789789... = 3/10 + 789/9990 = 2997/9990 + 789/9990 = 3786/9990 = 631/1665