Class pvc.options.format.NumberFormatStyle
Constructor Attributes | Constructor Name and Description |
---|---|
The options documentation of the number format style class.
|
Field Attributes | Field Name and Description |
---|---|
The array of abbreviations.
|
|
Gets or sets the currency symbol to use in place of the "¤" mask character.
|
|
The character to use in place of the ".
|
|
The character to use in place of a "0" mask character in the fractional part.
|
|
The character to use in place of the "," mask character.
|
|
The array of group sizes.
|
|
The character to use in place of a "0" mask character in the integer part.
|
|
The negative sign character.
|
Class Detail
pvc.options.format.NumberFormatStyle
The options documentation of the number format style class.
The options in this class are mostly useful for customizing locale sensitive styles of number formatting.
See FormatProvider for more information on inheritance of formatting configurations.
Field Detail
{list(string)}
abbreviations
The array of abbreviations.
There is no maximum number of units abbreviations.
The first element of the array represents the Thousands unit,
the second Millions, the third Billions...
- Default Value:
- ['k','m','b','t']
{string}
currency
Gets or sets the currency symbol to use in place of the "¤" mask character.
The currency sign ¤ is a character used to denote an unspecified currency. Its unicode is U+00A4 and its HTML entities are ¤ and ¤
See http://en.wikipedia.org/wiki/Currency_sign_(typography) for more information on the currency sign character.
- Default Value:
- '$'
{string}
decimal
The character to use in place of the "." mask character.
The decimal point separates the integer and fraction parts of the number.
- Default Value:
- '.'
{string}
fractionPad
The character to use in place of a "0" mask character in the fractional part.
- Default Value:
- '0'
{string}
group
The character to use in place of the "," mask character.
The group separator groups integer digits according to the sizes in
groupSizes.
Grouping can be disabled, independently of the mask, by specifying "".
- Default Value:
- ','
{list(number)}
groupSizes
The array of group sizes.
The last group is repeated indefinitely.
The array must contain at least one element.
- Default Value:
- [3]
{string}
integerPad
The character to use in place of a "0" mask character in the integer part.
- Default Value:
- '0'
{string}
negativeSign
The negative sign character.
The negative sign is used to indicate a negative number
when a mask does not have a negative values section.
The negative sign is placed leftmost in the resulting string.
The negative sign is also used for showing a negative exponent,
in scientific notation.
- Default Value:
- '-'