Returns an approximation to the arc tangent of the quotient y/x of the arguments y and x, where the signs of y and x are used to determine the quadrant of the result.
Returns an approximation to subtracting 1 from the exponential function of x (e raised to the power of x, where e is the base of the natural logarithms).
Returns a number value with positive sign, greater than or equal to 0 but less than 1, chosen randomly or pseudo randomly with approximately uniform distribution over that range, using an implementation-dependent algorithm or strategy.
Returns an approximation to the arc tangent of the quotient y/x of the arguments y and x, where the
signs of y and x are used to determine the quadrant of the result. Note that it is intentional and
traditional for the two-argument arc tangent function that the argument named y be first and the argument
named x be second. The result is expressed in radians and ranges from -p to +p.
If either _x_or _y_is NaN, the result is NaN.
If y>0 and _x_is +0, the result is an implementation-dependent approximation to +p/2.
If y>0 and _x_is -0, the result is an implementation-dependent approximation to +p/2.
If _y_is +0 and x>0, the result is +0.
If _y_is +0 and _x_is +0, the result is +0.
If _y_is +0 and _x_is -0, the result is an implementation-dependent approximation to +p.
If _y_is +0 and X<0, the result is an implementation-dependent approximation to +p.
If _y_is -0 and x>0, the result is -0.
If _y_is -0 and _x_is +0, the result is -0.
If _y_is -0 and _x_is -0, the result is an implementation-dependent approximation to -p.
If _y_is -0 and X<0, the result is an implementation-dependent approximation to -p.
If y<0 and _x_is +0, the result is an implementation-dependent approximation to -p/2.
If y<0 and _x_is -0, the result is an implementation-dependent approximation to -p/2.
If y>0 and _y_is finite and _x_is +∞, the result is +0.
If y>0 and _y_is finite and _x_is -∞, the result if an implementation-dependent approximation to +p.
If y<0 and _y_is finite and _x_is +∞, the result is -0.
If y<0 and _y_is finite and _x_is -∞, the result is an implementation-dependent approximation to -p.
If _y_is +∞and _x_is finite, the result is an implementation-dependent approximation to +p/2.
If _y_is -∞and _x_is finite, the result is an implementation-dependent approximation to -p/2.
If _y_is +∞and _x_is +∞, the result is an implementation-dependent approximation to +p/4.
If _y_is +∞and _x_is -∞, the result is an implementation-dependent approximation to +3p/4.
If _y_is -∞and _x_is +∞, the result is an implementation-dependent approximation to -p/4.
If _y_is -∞and _x_is -∞, the result is an implementation-dependent approximation to -3p/4.
Parameters:
y - the first argument.
x - the second argument.
Returns:
approximation to the arc tangent of the quotient y/x of the arguments y and x, where the
signs of y and x are used to determine the quadrant of the result.
Returns the smallest (closest to -∞) number value that is not less than x and is equal to a
mathematical integer. If x is already an integer, the result is x.
If _x_is NaN, the result is NaN.
If _x_is +0, the result is +0.
If _x_is -0, the result is -0.
If _x_is +∞, the result is +∞.
If _x_is -∞, the result is -∞.
If _x_is less than 0 but greater than -1, the result is -0.
The value of Math.ceil(x) is the same as the value of -Math.floor(-x).
Parameters:
x - the Number to operate on.
Returns:
the smallest (closest to -∞) number value that is not less than x and is equal to a
mathematical integer.
Returns an approximation to subtracting 1 from the exponential function of x (e raised to the power of x, where e
is the base of the natural logarithms). The result is computed in a way that is accurate even when the value of x
is close 0.
If _x_is NaN, the result is NaN.
If _x_is +0, the result is +0.
If _x_is -0, the result is -0.
If _x_is +∞, the result is +∞.
If _x_is -∞, the result is -1.
Parameters:
x - the Number to operate on.
Returns:
an approximation to subtracting 1 from the exponential function of x.
Returns the greatest (closest to +∞) number value that is not greater than x and is equal to a
mathematical integer. If x is already an integer, the result is x.
If _x_is NaN, the result is NaN.
If _x_is +0, the result is +0.
If _x_is -0, the result is -0.
If _x_is +∞, the result is +∞.
If _x_is -∞, the result is -∞.
If _x_is greater than 0 but less than 1, the result is +0.
The value of Math.floor(x) is the same as the value of -Math.ceil(-x).
Parameters:
x - the Number to operate on.
Returns:
the greatest (closest to +∞) number value that is not greater than x and is equal to a
mathematical integer.
Returns a number value with positive sign, greater than or equal to 0 but less than 1, chosen randomly or pseudo
randomly with approximately uniform distribution over that range, using an implementation-dependent algorithm or
strategy.
Returns:
a Number greater than or equal to 0 but less than 1.
Returns the number value that is closest to x and is equal to a mathematical integer. If two integer
number values are equally close to x, then the result is the number value that is closer to +∞. If x
is already an integer, the result is x.
If _x_is NaN, the result is NaN.
If _x_is +0, the result is +0.
If _x_is -0, the result is -0.
If _x_is +∞, the result is +∞.
If _x_is -∞, the result is -∞.
If _x_is greater than 0 but less than 0.5, the result is +0.
If _x_is less than 0 but greater than or equal to -0.5, the result is -0.
Math.round(3.5) returns 4, but Math.round(-3.5) returns -3. The value of Math.round(x) is the same as the
value of Math.floor(x+0.5), except when x is -0 or is less than 0 but greater than or equal to
-0.5; for these cases Math.round(x) returns -0, but Math.floor(x+0.5) returns +0.
Parameters:
x - the Number to operate on.
Returns:
the number value that is closest to x and is equal to a mathematical integer.