752
ActionScript classes
LN10 (Math.LN10 property)
public static LN10 : Number
A mathematical constant for the natural logarithm of 10, expressed as loge10, with an
approximate value of 2.302585092994046.
Availability:
ActionScript 1.0; 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.
Example
This example traces the value of
Math.LN10
.
trace(Math.LN10);
// output: 2.30258509299405
LN2 (Math.LN2 property)
public static LN2 : Number
A mathematical constant for the natural logarithm of 2, expressed as loge2, with an
approximate value of 0.6931471805599453.
Availability:
ActionScript 1.0; 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.
log (Math.log method)
public static log(x:Number) : Number
Returns the natural logarithm of parameter
x
.
Availability:
ActionScript 1.0; 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.
Parameters
x
:Number
- A number or expression with a value greater than 0.
Returns
Number
- The natural logarithm of parameter
x
.
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...