A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: [F8]Operator for ² , ³ , ...?

  1. #1

    [F8]Operator for ² , ³ , ...?

    Hi,
    english is not really my native language so I'm not even sure what this is called.
    But is there actually a math operator for ², ³, ..?

    Thanks
    Last edited by rkxtreme.tk; 09-02-2007 at 07:37 PM.
    I cause the rain to 13leed

  2. #2
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    that is called the exponet of a number and it says take x number times its self x number of times so if you had 2 with the small 3 ..then it would say 3*3*3 = 27 ....i'm not sure if flash has an exponet operator so i would just write it out the long way ...have you done a google search for the flash exponet operator.....after you search around for awhile plz post what you find in this thread
    ~calmchess~

  3. #3
    Aha! exponent, why didnt I think of that, thanks.

    Apparently there's a function!

    Math.pow(number, exponent);

    thanks the flashkit forum has saved me yet again
    I cause the rain to 13leed

  4. #4
    var x:Number = 1; x /= 0;
    Join Date
    Dec 2004
    Posts
    549
    there's also Math.sqrt(number); if you want to find square root. Sadly, I don't think there is any way to do cubed roots.
    Z¡µµ¥ D££

    Soup In A Box

  5. #5
    I take it you mean something like this

    with cubed roots?

    If so, you can just use Math.pow(number, (1/n));

    its like number^(1/n) on a calculator
    I cause the rain to 13leed

  6. #6
    Senior Member
    Join Date
    May 2004
    Location
    East Yorkshire, England
    Posts
    423
    Will ^ work?
    As in ^2 for squared and ^3 for cubed.
    Feeling chatty?
    http://www.mitsuku.com

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