Next: , Previous: FloatQ, Up: Base classes


1.81 Fraction

Defined in namespace Smalltalk
Superclass: Number
Category: Language-Data types
I represent rational numbers in the form (p/q) where p and q are integers. The arithmetic operations *, +, -, /, on fractions, all return a reduced fraction.