Sometimes a locale specific DecimalFormat is not needed. In this case, a pattern for this class can be specified on a DecimalFormat object. When a pattern is specified, the pattern is in an unlocalized format. If a different grouping separator or decimal point is needed, the specific decimal format symbol must be changed. Padding characters can also be specified in the pattern, and are useful when a monospace font is used.
Padding characters make it easier to left or right align a number.
This class represents the set of symbols needed by DecimalFormat to format numbers. DecimalFormat creates its own instance of DecimalFormatSymbols from its locale data. The DecimalFormatSymbols can be adopted by a DecimalFormat instance, or it can be specified when a DecimalFormat is created. If you need to change any of these symbols, can get the DecimalFormatSymbols object from your DecimalFormat and then modify it. Always show this digit even if the value is zero.