Creates a DecimalFormat using the given pattern and the symbols
for the default FORMAT locale.
This is a convenient way to obtain a
DecimalFormat when internationalization is not the main concern.
To obtain standard formats for a given locale, use the factory methods on NumberFormat such as getNumberInstance. These factories will return the most appropriate sub-class of NumberFormat for a given locale.
pattern | a non-localized pattern string. |
NullPointerException | if pattern 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
Diagram: Format