Next: , Previous: rational (System Class), Up: Numbers

ratio (System Class)

Class Precedence List:

ratio, rational, real, number, t


A ratio is a number representing the mathematical ratio of two non-zero integers, the numerator and denominator, whose greatest common divisor is one, and of which the denominator is positive and greater than one.

See Also:

Figure 2.9, Section 2.3.2 (Constructing Numbers from Tokens), Section (Printing Ratios)