public final class RyuDouble extends Object
| Constructor and Description |
|---|
RyuDouble() |
| Modifier and Type | Method and Description |
|---|---|
static String | doubleToString(double value,
int decimals)Converts a double value to its shortest decimal representation using the
Ryu algorithm, rounded to the specified number of decimal places. |
public static String doubleToString(double value, int decimals)
value - the double value to convert.decimals - the number of decimal places to round to.