JavaScript Math Methods

You are Here:

Math Methods

The following table provides a list of all Math Methods available in JavaScript.

MethodsExplanation
abs(x)Returns the absolute value of x
acos(x)Returns the arc-cosine of x, in radians
acosh(x)Returns the hyperbolic arc-cosine of x
asin(x)Returns the arc-sine of x, in radians
asinh(x)Returns the hyperbolic arc-sine of x
atan2(y, x)Returns the arc-tangent of the quotient of its arguments
atan(x)Returns the arc-tangent of x as a numeric value between -PI/2 and PI/2 radians
atanh(x)Returns the hyperbolic arc-tangent of x
cbrt(x)Returns the cubic root of x
ceil(x)Returns the smallest integer greater than or equal to a x.
cos(x)Returns the cosine of x, in radians
cosh(x)Returns the hyperbolic cosine of x
exp(x)Returns the value of Ex
floor(x)Returns the largest integer less than or equal to a x
log(x)Returns the natural logarithm of a x
max(x, y, z, ..., n)Returns the number with the highest value
min(x, y, z, ..., n)Returns the number with the lowest value
pow(x, y)Returns the value of x to the power of y
random()Returns a pseudo-random number between 0 and 1
round(x)Returns the value of a x rounded to the nearest integer
sin(x)Returns the sine of x, in radians
sinh(x)Returns the hyperbolic sine of x
sqrt(x)Returns the square root of a x
tan(x)Returns the tangent of an angle
tanh(x)Returns the hyperbolic tangent of a number
trunc(x)Returns the integer part of a number (x)

Reminder

Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in JavaScript.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author