public class DoubleConverter extends Object
| Constructor and Description |
|---|
DoubleConverter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convert(double d)
Converts a double to a string with no padding.
|
static String |
convert(double d,
int padding)
Converts a double to a string with padding.
|
static double |
convert(String value)
Convert a String value to a double.
|
public static String convert(double d)
d - the double to convertconvert(double, int)public static String convert(double d, int padding)
d - the double to convertpadding - the number of zeros to add to end of the formatted doublepublic static double convert(String value) throws FieldConvertError
value - the String value to convertFieldConvertError - if the String is not a valid double pattern.Copyright © 2021. All rights reserved.