Math
Property Summary
Type | Name | Summary |
---|---|---|
Euler's constant and the base of natural logarithms.. | ||
Natural logarithm of 10.. | ||
Natural logarithm of 2.. | ||
Base 10 logarithm of E.. | ||
Base 2 logarithm of E.. | ||
Ratio of the circumference of a circle to its diameter.. | ||
Square root of 1/2.. | ||
Square root of 2.. |
Methods Summary
Type | Name | Summary |
---|---|---|
Returns the absolute value of a number.. | ||
Returns the arccosine (in radians) of a number.. | ||
Returns the arcsine (in radians) of a number.. | ||
Returns the arctangent (in radians) of a number.. | ||
Returns the arctangent of the quotient of its arguments.. | ||
Returns the smallest integer greater than or equal to a number.. | ||
Returns the cosine of a number.. | ||
Returns Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.. | ||
Returns the largest integer less than or equal to a number.. | ||
Returns the natural logarithm (base E) of a number.. | ||
Returns the greater of two (or more) numbers.. | ||
Returns the lesser of two (or more) numbers.. | ||
Returns base to the exponent power, that is, base exponent.. | ||
void | Returns a pseudo-random number between 0 and 1.. | |
void | Returns the value of a number rounded to the nearest integer.. | |
void | Returns the sine of a number.. | |
void | Returns the square root of a number.. | |
void | Returns the tangent of a number.. |
Properties Details
E
Euler's constant and the base of natural logarithms. Approximately 2.718.
Returns Number
Sample
LN10
Natural logarithm of 10. Approximately 2.302.
Returns Number
Sample
LN2
Natural logarithm of 2. Approximately 0.693.
Returns Number
Sample
LOG10E
Base 10 logarithm of E. Approximately 0.434.
Returns Number
Sample
LOG2E
Base 2 logarithm of E. Approximately 1.442.
Returns Number
Sample
PI
Ratio of the circumference of a circle to its diameter. Approximately 3.14159.
Returns Number
Sample
SQRT1_2
Square root of 1/2. Equivalently, 1 over the square root of 2, approximately 0.707.
Returns Number
Sample
SQRT2
Square root of 2. Approximately 1.414.
Returns Number
Sample
Methods Details
abs(x)
Returns the absolute value of a number.
Parameters Number x ;
Returns Number
Sample
acos(x)
Returns the arccosine (in radians) of a number.
Parameters Number x ;
Returns Number
Sample
asin(x)
Returns the arcsine (in radians) of a number.
Parameters Number x ;
Returns Number
Sample
atan(x)
Returns the arctangent (in radians) of a number.
Parameters Number x ;
Returns Number
Sample
atan2(y, x)
Returns the arctangent of the quotient of its arguments.
Parameters Number y ; Number x ;
Returns Number
Sample
ceil(x)
Returns the smallest integer greater than or equal to a number.
Parameters Number x ;
Returns Number
Sample
cos(x)
Returns the cosine of a number.
Parameters Number x ;
Returns Number
Sample
exp(x)
Returns Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.
Parameters Number x ;
Returns Number
Sample
floor(x)
Returns the largest integer less than or equal to a number.
Parameters Number x ;
Returns Number
Sample
log(x)
Returns the natural logarithm (base E) of a number.
Parameters Number x ;
Returns Number
Sample
max(value)
Returns the greater of two (or more) numbers.
Parameters Array value ;
Returns Number
Sample
min(value)
Returns the lesser of two (or more) numbers.
Parameters Array value ;
Returns Number
Sample
pow(base, exponent)
Returns base to the exponent power, that is, base exponent.
Parameters Number base ; Number exponent ;
Returns Number
Sample
random()
Returns a pseudo-random number between 0 and 1.
Returns void
Sample
round(x)
Returns the value of a number rounded to the nearest integer.
Parameters Number x ;
Returns void
Sample
sin(x)
Returns the sine of a number.
Parameters Number x ;
Returns void
Sample
sqrt(x)
Returns the square root of a number.
Parameters Number x ;
Returns void
Sample
tan(x)
Returns the tangent of a number.
Parameters Number x ;
Returns void
Sample
Last updated