Class BigDecRoundSigFig

  • All Implemented Interfaces:
    PostfixMathCommandI, java.io.Serializable

    public class BigDecRoundSigFig
    extends BinaryFunction
    Rounding functions to round to a specific number of significant figures. Support all the modes in RoundingMode. roundSF(x,k) rounds to k significant figures. Uses the BigDecimal.round(MathContext) method.
    Since:
    Jep 3.5
    Author:
    Richard Morris
    See Also:
    Serialized Form
    • Constructor Detail

      • BigDecRoundSigFig

        public BigDecRoundSigFig​(java.math.RoundingMode mode)
        Constructor with a specified rounding mode.
        Parameters:
        mode -