You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/17 09:47:15 UTC
[jira] [Resolved] (FLEX-26698) CurrencyFormatter returns malformed
string when formatting the number 0
[ https://issues.apache.org/jira/browse/FLEX-26698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean resolved FLEX-26698.
----------------------------------
Resolution: Fixed
Fix Version/s: Apache Flex 4.10.0
Fixed and check into develop branch
> 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
> Assignee: Justin Mclean
> Labels: easyfix
> Fix For: Apache Flex 4.10.0
>
>
> 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