Repetend (2009-02-07)

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'.

General Information
  • Note: For detailed program information, use the command-line `-h' option (sans quotes); for the license, use the `-l' option.
  • Last Modified: 7 February 2009
  • License: BSD

Click here to download Repetend.