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.

exp (Math.exp method)<br />

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

Returns the value of the base of the natural logarithm (e), to the power of the exponent<br />

specified in the parameter x. The constant Math.E can provide the value of e.<br />

Parameters<br />

x:Number - The exponent; a number or expression.<br />

Returns<br />

Number - A number.<br />

Example<br />

The following example displays the logarithm for two number values.<br />

trace(Math.exp(1)); // output: 2.71828182845905<br />

trace(Math.exp(2)); // output: 7.38905609893065<br />

See also<br />

E (Math.E property)<br />

floor (Math.floor method)<br />

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

Returns the floor of the number or expression specified in the parameter x. The floor is the<br />

closest integer that is less than or equal to the specified number or expression.<br />

Parameters<br />

x:Number - A number or expression.<br />

Returns<br />

Number - The integer that is both closest to, <strong>and</strong> less than or equal to, parameter x.<br />

Example<br />

The following code returns a value of 12:<br />

Math.floor(12.5);<br />

The following code returns a value of -7:<br />

Math.floor(-6.5);<br />

384 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!