Others



JavaScript Math


The JavaScript Math object provides properties and methods for mathematical constants and functions to perform various mathematical operations.

JavaScript Math Methods

Let's see the list of JavaScript Math methods with description.

Method Description
abs() Returns the absolute value of the number.
acos() Returns the inverse cosine of a number in radians.
asin() Returns the inverse sine of a number in radians.
atan() Returns the inverse tangent of a number in radians.
ceil() Returns the rounded up number to the nearest integer.
cos() Returns the cosine of a number in radians.
floor() Returns the rounded down number to the nearest integer.
log() Returns the natural logarithm of a number.
max() Returns the number with the highest value value in a list of arguments.
min() Returns the number with the lowest value in a list of arguments.
pow() Returns the numeric value of a base raised to the power.
round() Returns the rounded to the nearest integer.
sin() Returns the sine of a number in radians.
sqrt() Returns the square root of the number.
tan() Returns the tangent of a number in radians.