A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [MX04] How do I calculate an exponent?

  1. #1
    file not found Captain_404's Avatar
    Join Date
    Apr 2006
    Posts
    457

    [MX04] How do I calculate an exponent?

    ok, stupid question time...

    I'm working on incorperating math into my programming and I need to know how you would do an exponent in flash form.

    for example: five squared would be displayed as what in AS? what would I do to find the square root of a number?

    any help would be apreciated, thanks!

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    trace(Math.pow(5,2)); // 25
    trace(Math.sqrt(36)); // 6

    all in the Help Files

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