public class DoubleRounding
extends java.lang.Object
double
numbersConstructor | Description |
---|---|
DoubleRounding() |
Modifier and Type | Method | Description |
---|---|---|
static double |
round(double value,
int numberOfDecimalPlaces) |
Rounds given double value to a specified number of decimal places.
|
public static double round(double value, int numberOfDecimalPlaces)
value
- the value to be roundednumberOfDecimalPlaces
- the number of decimal places to round to