03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LN10 (Math.LN10 property)<br />

public static LN10 : Number<br />

A mathematical constant for the natural logarithm of 10, expressed as loge10, with an<br />

approximate value of 2.302585092994046.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5 - In Flash Player 4, the methods <strong>and</strong> properties<br />

of the Math class are emulated using approximations <strong>and</strong> might not be as accurate as the nonemulated<br />

math functions that Flash Player 5 supports.<br />

Example<br />

This example traces the value of Math.LN10.<br />

trace(Math.LN10);<br />

// output: 2.30258509299405<br />

LN2 (Math.LN2 property)<br />

public static LN2 : Number<br />

A mathematical constant for the natural logarithm of 2, expressed as loge2, with an<br />

approximate value of 0.6931471805599453.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5 - In Flash Player 4, the methods <strong>and</strong> properties<br />

of the Math class are emulated using approximations <strong>and</strong> might not be as accurate as the nonemulated<br />

math functions that Flash Player 5 supports.<br />

log (Math.log method)<br />

public static log(x:Number) : Number<br />

Returns the natural logarithm of parameter x.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5 - In Flash Player 4, the methods <strong>and</strong> properties<br />

of the Math class are emulated using approximations <strong>and</strong> might not be as accurate as the nonemulated<br />

math functions that Flash Player 5 supports.<br />

Parameters<br />

x:Number - A number or expression with a value greater than 0.<br />

Returns<br />

Number - The natural logarithm of parameter x.<br />

Math 761

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!