# Math

A global object containing a set of math functions and constants.

## Methods:

abs, acos, asin, atan, atan2, ceil, cos, exp, floor, log, max, min, pow, random, round, sin, sqrt, tan

## Property Listing

Name

Type

Access

Description

Euler's constant and the base of natural logarithms.

The natural logarithm of 10.

The natural logarithm of 2.

The base 10 logarithm of e.

The base 2 logarithm of e.

The ratio of the circumference of a circle to its diameter.

The reciprocal of the square root of 1/2.

The square root of 2.

## Method Listing

Number (x:Number)

Returns the absolute value of a number.

Parameter

Type

Description

x

A number.

Number (x:Number)

Returns the arc cosine(in radians) of a number.

Parameter

Type

Description

x

A number.

Number (x:Number)

Returns the arc sin(in radians) of a number.

Parameter

Type

Description

x

A number.

Number (x:Number)

Returns the arc tangent(in radians) of a number.

Parameter

Type

Description

x

A number.

Number (y:Number, x:Number)

Returns the arc tangent of the quotient of its arguments (y/x).

Parameter

Type

Description

y

A number.

x

A number.

Number (x:Number)

Rounds the number up to the nearest integer.

Parameter

Type

Description

x

A number.

Number (x:Number)

Returns the cosine of an angle provided in radians.

Parameter

Type

Description

x

Number (x:Number)

Returns Math.E raised to the power of a number.

Parameter

Type

Description

x

A number.

Number (x:Number)

Rounds a number down to the nearest integer.

Parameter

Type

Description

x

A number.

Number (x:Number)

Returns the natural logarithm of a number.

Parameter

Type

Description

x

A number.

Number (value1, value2, ...:Number)

Returns the largest of zero or more numbers.

Parameter

Type

Description

value1, value2, ...

Numbers.

Number (value1, value2, ...:Number)

Returns the smallest of zero or more numbers.

Parameter

Type

Description

value1, value2, ...

Numbers.

Number (x:Number, y:Number)

Returns x raised to the power of y.

Parameter

Type

Description

x

Numbers.

y

Number ()

Returns a pseudo-random number from 0.0 up to but not including 1.0.

Number (x:Number)

Rounds a number to the nearest integer.

Parameter

Type

Description

x

A number.

Number (x:Number)

Returns the sine of an angle provided in radians.

Parameter

Type

Description

x

Number (x:Number)

Returns the square root of a number.

Parameter

Type

Description

x

A number.

Number (x:Number)

Returns the tangent of an angle provided in radians.

Parameter

Type

Description

x