Class AbstractCompositeNumber

All Implemented Interfaces:
Serializable, Comparable, RoundingModes
Direct Known Subclasses:
Power, Product

public abstract class AbstractCompositeNumber extends CompositeNumber
Abstract base class for CompositeNumber implementations. This implementation is based on an array. Concrete subclasses should initialize the array upon construction.
Version:
$Revision: 1.3 $ $Date: 2002/08/16 21:54:40 $
Author:
Ernst de Haan (znerd@FreeBSD.org)
See Also:
  • Constructor Details

    • AbstractCompositeNumber

      protected AbstractCompositeNumber(int sign, String asString, RealNumber[] elements)
      Constructs a new AbstractCompositeNumber object.

      The sign of the value needs to be specified. Any negative value is interpreted as meaning that the value of this number is negative. Any positive value is interpreted as meaning that the value of this number is positive.

      Parameters:
      sign - the sign of this number.
      asString - a textual presentation for this number, not null
      elements - the elements for this composite number, not null, not empty and not containing any null values.
  • Method Details