03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - 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 />

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 />

log (Math.log method)<br />

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

Returns the natural logarithm of parameter x.<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 />

Example<br />

The following example displays the logarithm for three numerical values.<br />

trace(Math.log(0)); // output: -Infinity<br />

trace(Math.log(1)); // output: 0<br />

trace(Math.log(2)); // output: 0.693147180559945<br />

trace(Math.log(Math.E)); // output: 1<br />

LOG10E (Math.LOG10E property)<br />

public static LOG10E : Number<br />

A mathematical constant for the base-10 logarithm of the constant e (Math.E), expressed as<br />

log10e, with an approximate value of 0.4342944819032518.<br />

Math 385

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

Saved successfully!

Ooh no, something went wrong!