Fraction



Fraction inherits from Number and defines instance variables numerator, denominator. It has no subclasses.

Fractions are rational numbers.

The numerator and denominator of a Fraction are assumed to be Integers---and are therefore affected by the same restrictions imposed on Integers (see the comment of Integer for explanation).

Methods defined in Fraction:

Methods for accessing:

Methods for arithmetic:

Methods for comparing:

Methods for converting:

Methods for double dispatching:

Methods for initialization:

Methods for math functions:

Methods for predicates:

Methods for printing:


Pocket Smalltalk Documentation