flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-34645) CurrencyFormatter the currencySymbol not null
Date Tue, 25 Nov 2014 23:09:13 GMT

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

Justin Mclean commented on FLEX-34645:
--------------------------------------

Believe that is correct behaviour i.e. use the default currency symbol if none is specified.
If you want no symbol to show set it to "".


Code in question:
	public function set currencySymbol(value:String):void
	{
		currencySymbolOverride = value;

		_currencySymbol = value != null ?
						  value :
						  resourceManager.getString(
					          "SharedResources", "currencySymbol");
	}

> CurrencyFormatter the currencySymbol not null
> ---------------------------------------------
>
>                 Key: FLEX-34645
>                 URL: https://issues.apache.org/jira/browse/FLEX-34645
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Apache Flex 4.13.0
>         Environment: If I set the value currencySymbol to null, then the default icon
coming out
>            Reporter: Robbyn Gerhardt
>              Labels: currency, easytest, formatter
>             Fix For: Apache Flex 4.14.0
>
>
> var myNumber:Number = 10;
> //Output: 10
> var fomratter:CurrencyFormatter	=	new CurrencyFormatter();
> fomratter.currencySymbol						=	null;
> fomratter.decimalSeparatorTo					=	",";
> fomratter.precision								=	2;
> fomratter.useThousandsSeparator					=	false;
> var newNumber:String	=	fomratter.format(myNumber);
> //Output: 10,00 $



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message