Here's one for the mathematicians in the audience:
How to you calculate log2(x) in FLEX? Looking at the Math library, it only provides the Math.log(x) function.
Thoughts?
hi,
The Math.log
method computes the natural logarithm of a number. Multiply the result of Math.log()
by Math.LOG2E
to obtain the base-2 logarithm.
Look for the public constant Log2E in the same library
Sincerely,
Michael
El 15/05/2009, a las 16:50, Miggl <forums@adobe.com> escribió:
>
Here's one for the mathematicians in the audience:
>
How to you calculate log2(x) in FLEX? Looking at the Math library,
it only provides the Math.log(x) function.
>
Thoughts?
>
Thanks, this worked perfectly. I knew where to find the constants, just not how to use them .
-Mike