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

Spark CurrencyFormatter incorrectly formats 0 on iPad

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.13.0
    • None
    • Spark: Formatters
    • None
    • iOS 8.1.3

    Description

      Formatting a zero currency value with spark.formatters.CurrencyFormatter and the en_US locale works correctly on all platforms I've tried but not on iPad - instead of 0.00 it returns 0 (no decimals). Other number values without fractional parts format correctly (i.e., 78.00)

      I've tried forcing fractionalDigits=2 and trailingZeros=true, no change.

      This actually is an issue with flash.globalization.CurrencyFormatter - I traced through the code and the Spark formatter is just returning the result from the lower-level formatter. I tried to submit a bug with Adobe, but was not successful.

      [The MX CurrencyFormatter works correctly, but I'd rather not roll back...]

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            billt Bill Turner

            Dates

              Created:
              Updated:

              Slack

                Issue deployment