public class DoubleUtilities
extends java.lang.Object
| Constructor and Description |
|---|
DoubleUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static double |
format(double value,
char decimalSeparator,
int decimalsNumber)
Formats a double with an specified number of decimals.
|
static double |
format(double num,
int n)
Formats a double with an specified number of decimals.
|
public static double format(double value,
char decimalSeparator,
int decimalsNumber)
value - Separator char of the integer partdecimalSeparator - Separator char of the decimal partdecimalsNumber - Number of decimalspublic static double format(double num,
int n)
num - Value to tailn - Number of decimals