org.jfree.formula.util

Class NumberUtil


public class NumberUtil
extends java.lang.Object

Field Summary

static BigDecimal
DELTA

Method Summary

static BigDecimal
getAsBigDecimal(Number number)
static Integer
performIntRounding(BigDecimal n)
static BigDecimal
removeTrailingZeros(BigDecimal bd)

Field Details

DELTA

public static final BigDecimal DELTA

Method Details

getAsBigDecimal

public static BigDecimal getAsBigDecimal(Number number)
            throws EvaluationException

performIntRounding

public static Integer performIntRounding(BigDecimal n)

removeTrailingZeros

public static BigDecimal removeTrailingZeros(BigDecimal bd)