Math constants return constant values that are properties of the Math object.
The following table lists constant values that are properties of the Math object.
The mathematical constant e. This is Euler's number, the base of natural logarithms.
The natural logarithm of 2.
The natural logarithm of 10.
The base-2 logarithm of e.
The base-10 logarithm of e.
Pi. This is the ratio of the circumference of a circle to its diameter.
The square root of 0.5, or, equivalently, one divided by the square root of 2.
The square root of 2.
The following example illustrates how to use the Math.PI constant.
Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards, Internet Explorer 11 standards. Also supported in Store apps (Windows 8 and Windows Phone 8.1). See Version Information.