This class represents the set of symbols needed by DecimalFormat to format numbers
This class represents the set of symbols needed by DecimalFormat to format numbers. DecimalFormat creates for itself an instance of DecimalFormatSymbols from its locale data. If you need to change any of these symbols, you can get the DecimalFormatSymbols object from your DecimalFormat and modify it.Here are the special characters used in the parts of the subpattern, with notes on their usage.
. Symbol Meaning . 0 a digit . # a digit, zero shows as absent . . placeholder for decimal separator . , placeholder for grouping separator. . ; separates formats. . - default negative prefix. . % divide by 100 and show as percentage . X any other characters can be used in the prefix or suffix . ' used to quote special characters in a prefix or suffix.[Notes]If there is no explicit negative subpattern, - is prefixed to the positive form. That is, "0.00" alone is equivalent to "0.00;-0.00".
The grouping separator is commonly used for thousands, but in some countries for ten-thousands. The interval is a constant number of digits between the grouping characters, such as 100,000,000 or 1,0000,0000. If you supply a pattern with multiple grouping characters, the interval between the last one and the end of the integer is the one that is used. So "#,##,###,####" == "######,####" == "##,####,####".
This class only handles localized digits where the 10 digits are contiguous in Unicode, from 0 to 9. Other digits sets (such as superscripts) would need a different subclass.
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de