Prefix Format Suffix. A single number format can specify a format for
a positive value and one for a negative value. In this case the form is: PosPrefix PosFormat
PosSuffix;NegPrefix NegFormat NegSuffix. (The spaces between prefix, format, and suffix should not be
included in the actual format.)
The format can include the following characters. Each character is replaced with the locale-specific text when
a number is formatted.
0 - Digit# - Digit, zero shows as absent. - Decimal separator or monetary decimal separator- - Minus sign, - Grouping separator; - Separates positive and negative subpatterns% - Multiply by 100 and show as percentage‰ - Multiply by 1000 and show as per-mille¤ - Currency sign, replaced by currency symbol' - Used to quote special characters in a prefix or suffix. To create a single quote
itself, use two in a row| Constructor Summary | |
|---|---|
| void | |
| Method Summary | |
|---|---|
| String | |
| static jsx3.util.NumberFormat | getCurrencyInstance(objLocale : jsx3.util.Locale) Returns a currency number format appropriate for objLocale. |
| static jsx3.util.NumberFormat | getIntegerInstance(objLocale : jsx3.util.Locale) Returns an integer number format appropriate for objLocale. |
| jsx3.util.Locale | |
| static jsx3.util.NumberFormat | getNumberInstance(objLocale : jsx3.util.Locale) Returns a general number format appropriate for objLocale. |
| static jsx3.util.NumberFormat | getPercentInstance(objLocale : jsx3.util.Locale) Returns a percent number format appropriate for objLocale. |
| void | setLocale(objLocale : jsx3.util.Locale) |
| String | toString() |
| Methods Inherited From jsx3.lang.Object |
|---|
| clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf |
| Constructor Detail |
|---|
| Method Detail |
|---|
objLocale.objLocale.objLocale.objLocale.