public class DecimalFormatter extends Object
| Constructor and Description |
|---|
DecimalFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
toExponential(double v,
int fractionDigits)
The algorithm of Number.prototype.toExponential.
|
static String |
toFixed(double v,
int fractionDigits)
The algorithm of Number.prototype.toFixed(fractionDigits).
|
static String |
toPrecision(double v,
int precision)
The algorithm of Number.prototype.toPrecision()
|
public static String toExponential(double v, int fractionDigits)
public static String toFixed(double v, int fractionDigits)
public static String toPrecision(double v, int precision)
Copyright © 2025 HtmlUnit. All rights reserved.