Ln10 (Math.ln10 Property); Ln2 (Math.ln2 Property); Log (Math.log Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

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
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
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
- A number or expression with a value greater than 0.
x:Number
Returns
- The natural logarithm of parameter
Number
752
ActionScript classes
.
Math.LN10
.
x
.
x

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents