The class RationalField represents the field of (arbitrary precision) rational numbers. Each rational number is an instance of the class Rational.
The module rings.rational_field defines the following classes: