force2 decimal flash
force2 decimal flash
Out of context: Reply #1
- Started
- Last post
- 1 Response
- gbz0
function roundDec(num, places)
{
var p = "1";
for (var i = 0; i < places; i ++) p += "0";
p = Number(p);
return Math.round(num * p)/p;
}so do:
myTextField.text = '$" + roundDec( 12.4567, 2 );would display $12.46