EJSC.NumberFormatter Property Examples
Properties Demonstrated
- Standard EJSC.NumberFormatter Properties
Desired Result
Source Code
- Rendering Source Code...
Properties Demonstrated
- forced_decimals
- variable_decimals
Description
This chart will force 2 decimal places to show, but not more than 4.
Source Code
- Rendering Source Code...
Properties Demonstrated
- currency_symbol
- currency_align
Desired Result
This chart will use the '$' for currency and place the currency symbol on the right.
Source Code
- Rendering Source Code...
Properties Demonstrated
- currency_symbol
- negative_symbol
- currency_position
Desired Result
This chart will use '$' for currency, and place the currency symbol outside the negative signs '(' & ')'.
Source Code
- Rendering Source Code...
Properties Demonstrated
- thousand_separator
- decimal_separator
Desired Result
This chart will use '|' to separate the thousands, and '#' to separate the decimals.
Source Code
- Rendering Source Code...