User Guide
434 Chapter 2: ActionScript Language Reference
Math.LOG2E
Availability
Flash Player 5. In Flash Player 4, the methods and properties of the Math class are emulated using
approximations and might not be as accurate as the non-emulated math functions that Flash
Player 5 supports.
Usage
Math.LOG2E:Number
Parameters
None.
Returns
Nothing.
Description
Constant; a mathematical constant for the base-2 logarithm of the constant e (Math.E), expressed
as log2
e
, with an approximate value of 1.442695040888963387.
Example
This example traces the value of Math.LOG2E.
trace(Math.LOG2E);
// Output: 1.44269504088896