Class BigDecAdd

All Implemented Interfaces:
FixedPrecisionFunctionI, PostfixMathCommandI, RealBinaryFunction, Serializable

public class BigDecAdd extends Add implements FixedPrecisionFunctionI
Function class for the addition operator. It can operate on multiple BigDecimals whose values are added or on Strings which are concatenated together. Inheriting from NaryBinaryFunction creates an n-ary function which is applied repeatedly if more than two arguments are provided.

Since Jep 4.1 can work with vectors.

See Also:
  • Field Details

    • mc

      protected MathContext mc
      Stores the math context used for calculations.
    • scale

      protected int scale
  • Constructor Details

    • BigDecAdd

      public BigDecAdd(MathContext mc)
      Constructor. Initialises the math context.
      Parameters:
      mc -
    • BigDecAdd

      public BigDecAdd(MathContext mc, int scale)
  • Method Details