[Mails] $.25 to $0.25
July 19, 2006 Leave a comment
To formnat a long from “.xx” to “0.xx”, this formatter method can be used.
function format2 ( str ):String{
var currencyFormattedString = str;
var a = currencyFormattedString.split(".");
currencyFormattedString = currencyFormattedString[0] + "0." +currencyFormattedString[1];
}
my_lbl.text = format2 ( "$.25" );
Courtesy: JesterXL



Recent Comments