number abs (x:
number)
Returns the absolute value of a number.
Parameter | Type | Description |
x | number | A number. |
number acos (x:
number)
Returns the arc cosine(in radians) of a number.
Parameter | Type | Description |
x | number | A number. |
number asin (x:
number)
Returns the arc sin(in radians) of a number.
Parameter | Type | Description |
x | number | A number. |
number atan (x:
number)
Returns the arc tangent(in radians) of a number.
Parameter | Type | Description |
x | number | A number. |
number atan2 (y:
number, x:
number)
Returns the arc tangent of the quotient of its arguments (y/x).
number ceil (x:
number)
Rounds the number up to the nearest integer.
Parameter | Type | Description |
x | number | A number. |
number cos (x:
number)
Returns the cosine of an angle provided in radians.
Parameter | Type | Description |
x | number | An angle, in radians. |
number exp (x:
number)
Returns Math.E raised to the power of a number.
Parameter | Type | Description |
x | number | A number. |
number floor (x:
number)
Rounds a number down to the nearest integer.
Parameter | Type | Description |
x | number | A number. |
number log (x:
number)
Returns the natural logarithm of a number.
Parameter | Type | Description |
x | number | A number. |
number max (x:
number, y:
number)
Returns the maximum of two numbers.
number min (x:
number, y:
number)
Returns the minimum of two numbers.
number pow (x:
number, y:
number)
Returns x raised to the power of y.
number random ()
Returns a pseudo-random number from 0.0 up to but not including 1.0. Range: 0.0 - 0.999999999999999
number round (x:
number)
Rounds a number to the nearest integer.
Parameter | Type | Description |
x | number | A number. |
number sin (x:
number)
Returns the sine of an angle provided in radians.
Parameter | Type | Description |
x | number | An angle, in radians. |
number sqrt (x:
number)
Returns the square root of a number.
Parameter | Type | Description |
x | number | A number. |
number tan (x:
number)
Returns the tangent of an angle provided in radians.
Parameter | Type | Description |
x | number | An angle, in radians. |
|