/ Published in: ActionScript 3
URL: http://flash.sikotiko.com/2009/04/23/as3-number-methods/
know how to show a number with a fixed number of digits after the decimal point.
Expand |
Embed | Plain Text
var num:Number = 12.3456; trace(num.toFixed(2));// => 12.34
You need to login to post a comment.
