public class NumberUtils extends Object
| Constructor and Description |
|---|
NumberUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
roundToPrecision(BigDecimal bd,
int precision)
Round to precision.
|
static double |
roundToPrecision(double d,
int precision)
Round to precision.
|
public static BigDecimal roundToPrecision(BigDecimal bd, int precision)
bd - The number to round.precision - The precision to round topublic static double roundToPrecision(double d,
int precision)
d - The number to round.precision - The precision to round toCopyright © 2021 Notima System Integration AB. All rights reserved.