The number package supports infinite-precision integer and rational numbers. All numbers are subtypes of the interface
Number(not to be confused with Java's Number class). All instances of Number are immutable. An integer number must implement the
IntegerNumberinterface. A rational number must implement the
RationalNumberinterface. The integers and rationals are disjoint sets. A
NumberFactoryprovides methods to create numbers, as well as operations such as addition, subtraction, and so on.
ClassDescriptionAn instance of this class represents an integer number.An instance of Interval represents a numeric interval.A number is some kind of representation of a real number.A number factory is used to produce concrete rational and integer numbers.A simple type for recording the result of attempting to take the union of two intervals i1 and i2.An instance of this class represents a rational number.