A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: big mathematic problem...need help.

  1. #1
    Member
    Join Date
    Oct 2001
    Posts
    30
    in the tutorial
    http://www.flashkit.com/movies/Scrip...13/index.shtml
    the final result is to long
    i would like to get just two numbers after the point
    to round the final result, how can i do
    thank's 4 repply
    xclear (from france)

  2. #2
    Senior Member
    Join Date
    Mar 2001
    Posts
    246
    Something like
    newnumber=Math.round(x*100)/100;
    should work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center