The class of rational numbers.
Create a rational from:
Other objects can be converted if they have toRational
methods. Otherwise raise TypeError.
The default value for denominator is 1.
Return a string of the number to N decimal places.
r.expand(k, limit) returns the nearest rational number whose denominator is a power of k and at most limit, if k > 0. if k==0, it returns the nearest rational number whose denominator is at most limit, i.e. r.expand(0, limit) == r.trim(limit).
Return a RationalField object.
inverse.
abs, +, /, ==, float, //, >=, >, +=, //=, *=, int, **=, -=, /=, <=, <, *, !=, -