flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject Re: Currency formatting and formatting 0
Date Wed, 17 Apr 2013 06:09:36 GMT
Hi,

Was a very simple fix - this:
// Handle leading zero if we got one give one if not don't
var position:Number = numStr.indexOf(".");
var leading:String = position > 0 ? "0" : "";

Should be:
// Handle leading zero if we got one give one if not don't
var position:Number = numStr.indexOf(".");
var leading:String = position == 0 ? "0" : "";

Thanks,
Justin

Mime
View raw message