Next: , Previous: , Up: Base classes   [Index]


1.84 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.