You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2014/11/26 00:10:12 UTC

[jira] [Comment Edited] (FLEX-34645) CurrencyFormatter the currencySymbol not null

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

Justin Mclean edited comment on FLEX-34645 at 11/25/14 11:09 PM:
-----------------------------------------------------------------

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


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

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


was (Author: jmclean):
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)