org.jfree.formula.util
Class NumberUtil

java.lang.Object
  extended by org.jfree.formula.util.NumberUtil

public class NumberUtil
extends java.lang.Object


Field Summary
static java.math.BigDecimal DELTA
           
 
Method Summary
static java.math.BigDecimal getAsBigDecimal(java.lang.Number number)
           
static java.lang.Integer performIntRounding(java.math.BigDecimal n)
           
static java.math.BigDecimal removeTrailingZeros(java.math.BigDecimal bd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELTA

public static final java.math.BigDecimal DELTA
Method Detail

getAsBigDecimal

public static java.math.BigDecimal getAsBigDecimal(java.lang.Number number)
                                            throws EvaluationException
Throws:
EvaluationException

performIntRounding

public static java.lang.Integer performIntRounding(java.math.BigDecimal n)

removeTrailingZeros

public static java.math.BigDecimal removeTrailingZeros(java.math.BigDecimal bd)