Examples in JavaScript
Computes the least integer value greater than or equal to x.
Compute the greatest integer value less than or equal to x.
Round returns the nearest integer, rounding half away from zero.
Computes an implementation-dependent 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.
Compute an implementation-dependent approximation to the natural logarithm of 1 + x. The result is computed in a way that is accurate even when the value of x is close to zero.
Computes the square root of the sum of squares of its arguments, that is:
Computes either a positive or negative 1, indicating the sign of a number passed into the argument. If the number argument is 0, it will return 0.