Number



Number inherits from Object and defines no instance variables. It has subclasses Double, Fraction, Integer, and Point.

Numbers are numeric values of various kinds.

Number has the protocol normally found in class Magnitude (there is no separate Magnitude class). In addition, the usual Number methods are implemented here.

Methods defined in Number:

Methods for comparing:

Methods for double dispatching:

Methods for instance creation:

Methods for math functions:

Methods for predicates:


Pocket Smalltalk Documentation