JS Useful References JS Useful Resources © 2013
TutorialsPoint.COM The math object provides you properties and
methods for mathematical constants and functions. Unlike the
other global objects, Math is not a constructor. All properties
and methods of Math are static and can be called by using Math
as an object without creating it. Thus, you refer to the
constant pi as Math.PI and you call the sine function as
Math.sin(x), where x is the method's argument. Here is the
simple syntax to call properties and methods of Math. var pi_val
= Math.PI; var sine_val = Math.sin(30); Here is a list of each
property and their description. |E ||Euler's constant and the
base of natural logarithms, approximately 2.718.| |LN2 ||Natural
logarithm of 2, approximately 0.693.| |LN10 ||Natural logarithm
of 10, approximately 2.302.| |LOG2E ||Base 2 logarithm of E,
approximately 1.442.| |LOG10E ||Base 10 logarithm of E,
approximately 0.434.| |PI ||Ratio of the circumference of a
circle to its diameter, approximately 3.14159.| |SQRT1_2