Number::Fraction is a Perl module which allows you to work with fractions in your Perl programs. WWW: http://search.cpan.org/dist/Number-Fraction/