|
|
The Math object in JavaScript is a built in object which allows you to perform mathematical operations.
Math object in JavaScript has properties and methods that has mathematical constraints and functions. Like all other objects, Math is not a constructor.
All the methods and properties of Math object are static and they can be called by using Math as an object without creating it.
Below are the list of all the properties of Math and their description.
In the upcoming sections, we will have a few examples which illustrates the use of Math properties.
Below are the list of the methods associated with Math object and their description.
Method
|
Description |
Returns the absolute value of a number. |
|
Returns the arccosine (in radians) of a number. |
|
Returns the arcsine (in radians) of a number. |
|
Returns the arctangent (in radians) of a number. |
|
Returns the arctangent of the quotient of its arguments. |
|
Returns the smallest integer greater than or equal to a number. |
|
Returns the cosine of a number. |
|
Returns EN, where N is the argument, and E is Euler's constant, the base of the natural logarithm. |
|
Returns the largest integer less than or equal to a number. |
|
Returns the natural logarithm (base E) of a number. |
|
Returns the largest of zero or more numbers. |
|
Returns the smallest of zero or more numbers. |
|
Returns base to the exponent power, that is, base exponent. |
|
Returns a pseudo-random number between 0 and 1. |
|
Returns the value of a number rounded to the nearest integer. |
|
Returns the sine of a number. |
|
Returns the square root of a number. |
|
Returns the tangent of a number. |
|
Returns the string "Math". |
In the upcoming sections, we will have a few examples which illustrates the use of the methods associated with Math.
|
|
Javascript Objects Related Tutorials |
|
---|---|
CSS3 Tutorial | HTML 5 Tutorial |
PHP Tutorial | AJAX Tutorial |
CSS Advanced Tutorial | Javascript Advanced Tutorial |
CakePHP Tutorial | CodeIgniter Tutorial |
JSON (JavaScript Object Notation) Tutorial |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.