Posted By

chrisaiv on 04/27/09


Tagged

tofixed as3


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

macKaminski
thastyle
tspitzr


As3: Show a number wiht a fixed number of digits after the decimal point


 / 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.

  1. var num:Number = 12.3456;
  2. trace(num.toFixed(2));// => 12.34

Report this snippet  

You need to login to post a comment.