blob: 10acd1a6da6e0dfdd856985d0bf9c760b7f30c0b [file] [log] [blame]
Sample Name ---- Spark NumberFormatter
Introduction:
The NumberFormatter class provides locale-sensitive formatting and parsing of numeric values. It can format int, uint, and Number objects. This class is a wrapper class around the flash.globalization.NumberFormatter class. Therefore, the locale-specific formatting is provided by the flash.globalization.NumberFormatter.
For more information about flash.globalization.NumberFormatter, please visit: http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/globalization/NumberFormatter.html
Usage of the sample code:
1. Select a Locale from the locale comboBox first. It will use en_US as the default choice.
2. Enter a number in the text input.
3. The number will be formatted.