Module boa::js::math

source ·
Expand description

The global Math object

Functions

Create a new Math object
Generate a random floating-point number between 0 and 1
Get the absolute value of a number
Get the arccos of a number
Get the arcsine of a number
Get the arctangent of a number
Get the arctangent of a numbers
Get the cubic root of a number
Get lowest integer above a number
Get the cosine of a number
Get the power to raise the natural logarithm to get the number
Get the highest integer below a number
Initialise the Math object on the global object
Get the natural logarithm of a number
Get the maximum of several numbers
Get the minimum of several numbers
Raise a number to a power
Round a number to the nearest integer
Get the sine of a number
Get the square root of a number
Get the tangent of a number