Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Adobe Flex SDK 3.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Browser: Firefox 2.x
Language Found: English
Description
Currency Formatter doesn't format well when the decimalSeparatorTo is ,(coma) and the thousandsSeparatorTo is .(point)
Steps to reproduce:
1. Create a CurrencyFormatter with the following properties:
currencySymbol = "$";
decimalSeparatorFrom = ",";
decimalSeparatorTo = ",";
thousandsSeparatorFrom = ".";
thousandsSeparatorTo = ".";
2.Try to convert the string 0,00
Actual Results:
0.00
Expected Results:
0,00
Workaround (if any):
Extend Currency Formatter and override the format method and add an if
if (value is String)
value = dataFormatter.parseNumberString(String(value));
//Add this if... it seems that Number Base doesn't format
if ( Number(value) == 0 )
value = "0";