Creates a DecimalFormat using the given pattern and symbols. Use this constructor when you need to completely customize the behavior of the format.
To obtain standard formats for a given locale, use the factory methods on NumberFormat such as getInstance or getCurrencyInstance. If you need only minor adjustments to a standard format, you can modify the format returned by a NumberFormat factory method.
pattern | a non-localized pattern string | |
symbols | the set of symbols to be used |
NullPointerException | if any of the given arguments is null | |
IllegalArgumentException | if the given pattern is invalid |
java.text.NumberFormat.getInstance, java.text.NumberFormat.getNumberInstance, java.text.NumberFormat.getCurrencyInstance, java.text.NumberFormat.getPercentInstance, java.text.DecimalFormatSymbols
Diagram: Format