| Modifier and Type | Method and Description |
|---|---|
static long |
round(DecimalArithmetic arith,
DecimalRounding rounding,
long uDecimal,
int precision)
Rounds the specified value to the given precision.
|
static long |
round(DecimalArithmetic arith,
long uDecimal,
int precision)
Truncates the specified value to the given precision.
|
public static final long round(DecimalArithmetic arith, long uDecimal, int precision)
arith - the arithmetic associated with the valueuDecimal - the unscaled decimal valueprecision - the precision to round toroundDOWN(uDecimal, precision)public static final long round(DecimalArithmetic arith, DecimalRounding rounding, long uDecimal, int precision)
arith - the arithmetic associated with the valuerounding - the rounding to applyuDecimal - the unscaled decimal valueprecision - the precision to round toround(uDecimal, precision)