rational v0.2.0 API Reference
Modules
Implements exact rational numbers. In its simplest form, Rational.new(3,4) will produce an exact rational number representation for 3/4. The fraction will be stored in the lowest terms (i.e., a reduced fraction) by dividing numerator and denominator through by their greatest common divisor. For example the fraction 8/12 will be reduced to 2/3