public class NumberUtilities
extends java.lang.Object
| Constructor and Description |
|---|
NumberUtilities() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatAmount(double amount)
Formats an amount to the text with 2 decimal places and at least one
leading digit and a point as a decimal separator.
|
double |
parseAmount(java.lang.String source)
Parses an amount to a double.
|
public double parseAmount(java.lang.String source)
source - amount text formatted as x.xxpublic java.lang.String formatAmount(double amount)
amount - the amount