-
[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
-
Senior Member
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
-
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
-
var x:Number = 1; x /= 0;
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.
-
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
-
Will ^ work?
As in ^2 for squared and ^3 for cubed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|