fractions

Rational, infinite-precision, real numbers.

Functions

gcd(a, b) Calculate the Greatest Common Divisor of a and b.

Classes

Decimal Floating point class for decimal arithmetic.
Fraction This class implements rational numbers.
Rational .numerator and .denominator should be in lowest terms.