Repetend, the command-line version of Quotient, is a Perl script (released under a BSD-style license) that determines the quotient of a rational fraction out to a specified decimal precision, and will optionally instead detect the repeating decimal portion of the output.
With the command-line flag `-r', Repetend will search for the repetend (that is to say, the repeating decimal portion) of the quotient. As an example of dividing one by seven with a scale of sixty, try the following:
repetend.pl -a 1 -b 7 -s 60 -r
This yields `142857'.
Click here to download Repetend.