Class BigDecComponents

java.lang.Object
com.singularsys.jep.ComponentSet
com.singularsys.jep.bigdecimal.BigDecComponents

public class BigDecComponents extends ComponentSet
A set of components for working with big decimal numbers.
  • Constructor Details

    • BigDecComponents

      public BigDecComponents()
      Constructs the class using the MathContext.UNLIMITED for unlimited precision arithmetic.
    • BigDecComponents

      public BigDecComponents(MathContext mc)
      Constructs the class with the specific math context. The math context is passed the number factory, function table, and operator table constructors.
      Parameters:
      mc - the math context for the components.
    • BigDecComponents

      public BigDecComponents(MathContext mc, boolean allowStrings)
      Parameters:
      mc - The mathContext to use
      allowStrings - whether string are allowed
  • Method Details

    • getMathContext

      public MathContext getMathContext()
    • setMathContext

      public void setMathContext(MathContext mc)
    • setAllowStrings

      public void setAllowStrings(boolean allowStrings)
      Sets whether BigDecimals and strings can be used together.
      Parameters:
      allowStrings -
      Since:
      3.4.0
    • getAllowStrings

      public boolean getAllowStrings()
      Whether string are allowed
      Returns:
      true is string can be used
      Since:
      3.4.0