/ Published in: ActionScript 3
I completely copied this from the Adobe site; but it's still a great reference.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Code Number of Decimal Places Example Results value= Math.round(20/7); none 3 value= int((20/7)*10)/10; 1 2.8 value= int((20/7)*100)/100; 2 2.85 value= int((20/7)*1000)/1000; 3 2.857 value= int((20/7)*10000)/10000; 4 2.85 71
URL: http://kb2.adobe.com/cps/155/tn_15542.html