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

NumberFormatter incorrect formatting of number 0.0 with decimalSeparator ","

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Adobe Flex SDK 3.1 (Release)
    • None
    • Formatters
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Firefox 2.x
      Language Found: English

    Description

      Steps to reproduce:
      1. create a NumberFormatter with this settings:
      precision=2;
      useThousandsSeparator=false;
      decimalSeparatorFrom=".";
      decimalSeparatorTo=",";

      2. format number 0.0

      Actual Results:

      0.0,00

      Expected Results:

      0,00

      I think problem is in function: format(value:Object):String of NumberFormatter infact there is case for
      if (Math.abs(numValue) >= 1)
      and for if (Math.abs(numValue) > 0)
      but not for if (Math.abs(numValue) == 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: