Package com.singularsys.jep.bigdecimal
Class BigDecComponents
java.lang.Object
com.singularsys.jep.ComponentSet
com.singularsys.jep.bigdecimal.BigDecComponents
A set of components for working with big decimal numbers.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs the class using theMathContext.UNLIMITED
for unlimited precision arithmetic.Constructs the class with the specific math context.BigDecComponents
(MathContext mc, boolean allowStrings) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether string are allowedvoid
setAllowStrings
(boolean allowStrings) Sets whether BigDecimals and strings can be used together.void
Methods inherited from class com.singularsys.jep.ComponentSet
addAuxComponent, addComponents, getAuxComponents, getAuxComps, getBaseComponents, getComponents, getEvaluator, getFunctionTable, getNodeFactory, getNumberFactory, getOperatorTable, getParser, getPrintVisitor, getVariableFactory, getVariableTable, setAuxComps, setEvaluator, setFunctionTable, setNodeFactory, setNumberFactory, setOperatorTable, setParser, setPrintVisitor, setVariableFactory, setVariableTable
-
Constructor Details
-
BigDecComponents
public BigDecComponents()Constructs the class using theMathContext.UNLIMITED
for unlimited precision arithmetic. -
BigDecComponents
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
- Parameters:
mc
- The mathContext to useallowStrings
- whether string are allowed
-
-
Method Details
-
getMathContext
-
setMathContext
-
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
-