dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Math.pow ?

Hybrid View

  1. #1

    Question Math.pow ?

    Hi,

    I'm trying to recreate this formula in Flash

    1000 * (1 + 0.06) ^ 3 = 1191.016

    using

    PHP Code:
    ActionScript Code:
    Math.pow(1000*(1+0.06),3); 
    but it's not displaying right - any help appreciated

  2. #2
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    915
    1000*Math.pow((1+0.06),3);
    who is this? a word of friendly advice: FFS stop using AS2

  3. #3
    Member
    Join Date
    Feb 2010
    Posts
    59
    Math.pow() works like this:

    Math.pow(y,x);

    y is raised to the x power

    Math.pow((),3)

    is your setup

    1000* Math.pow((1.06),3);

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