When the decimal form of a rational number in has a repeated pattern of digits after the decimal point, it is equivalent to a fraction. This Demonstration calculates the fractional form of repeating decimals up to 10 digits. You can vary and then change rows of the bottom array.
Wolfram Demonstrations Project
Published: June 10 2012