public class DoubleToStringFormatter extends Object
| Modifier and Type | Field and Description |
|---|---|
static char[] |
INFINITY |
static char[] |
NaN |
static char[][] |
ZEROS |
| Constructor and Description |
|---|
DoubleToStringFormatter(int numDigits,
char decimalPoint,
char negativePrefix,
boolean limitMaxFracDigits) |
| Modifier and Type | Method and Description |
|---|---|
String |
appendFormatted(double d)
Returns string representation of double.
|
public static final char[] INFINITY
public static final char[] NaN
public static final char[][] ZEROS
public DoubleToStringFormatter(int numDigits,
char decimalPoint,
char negativePrefix,
boolean limitMaxFracDigits)
numDigits - If number of decimal places before decimal points 'x' is less than numDigits
then number of places after decimal places should be less that equal than numDigits - xdecimalPoint - Char which represents decimal point. (for US locale it is .)negativePrefix - Char representing prefix for negative numbers (for US locale it is -)limitMaxFracDigits - If set as true numDigits will be max number of digits allowed after decimal places.public String appendFormatted(double d)
d - Copyright © 2010 - 2020 Adobe. All Rights Reserved