public class BigDecRoundSigFig extends BinaryFunction
RoundingMode
.
roundSF(x,k) rounds to k significant figures.
Uses the BigDecimal.round(MathContext)
method.curNumberOfParameters, name, NaN, numberOfParameters
Constructor and Description |
---|
BigDecRoundSigFig(java.math.RoundingMode mode)
Constructor with a specified rounding mode.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval(java.lang.Object l,
java.lang.Object r) |
run
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
public BigDecRoundSigFig(java.math.RoundingMode mode)
mode
- public java.lang.Object eval(java.lang.Object l, java.lang.Object r) throws EvaluationException
eval
in class BinaryFunction
EvaluationException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep