Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-14543

CurrencyFormatter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK 3.0 (Release)
    • None
    • Formatters
    • 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";

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: