flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Kessler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-26698) CurrencyFormatter returns malformed string when formatting the number 0
Date Wed, 17 Apr 2013 01:16:13 GMT

    [ https://issues.apache.org/jira/browse/FLEX-26698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633632#comment-13633632
] 

Mark Kessler commented on FLEX-26698:
-------------------------------------

Issue may already be resolved, needs to be tested/confirmed with an uploaded example.  Can
reference original adobe jira issue for more information.
                
> CurrencyFormatter returns malformed string when formatting the number 0
> -----------------------------------------------------------------------
>
>                 Key: FLEX-26698
>                 URL: https://issues.apache.org/jira/browse/FLEX-26698
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Formatters
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easyfix
>
> Steps to reproduce:
> 1. Create a CurrecyFormatter instance
> 2. Use default configuration
> 3. Attempt to format the value 0.
> Code Example:
> var formatter:CurrencyFormatter = new CurrencyFormatter();
> var value:String = formatter.format(0);
>  
>  Actual Results:
> value will be equal to '$.0'
>  
>  Expected Results:
> '$0'
>  
>  
>  Workaround (if any):
>  
>  Do a secondary check for a value equal to zero in your logic prior to calling the formatter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message