flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfb <j.ballada...@verizon.net>
Subject Re: Currency value
Date Mon, 14 Jul 2014 12:26:16 GMT
This should work:
var stringValue:String = "$1000"
var numericValue:Number = parseFloat(stringValue.replace("$",""));

If you like to put the currency back use:
var cf:CurrencyFormatter = new CurrencyFormatter();
cf.currencySymbol = '€';
var stringValue:String = cf.format(numericValue);

I hope this help.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Currency-value-tp7244p7256.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message