Math.PI (Constant/static)

A mathematical constant value.

Availability:

ECMAScript edition - 2
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise Server version - 2.0
Opera - 3.0
Property/method value type:Number primitive
JavaScript syntax:-Math.PI

This constant provides the numeric value for pi, the ratio of circumference of a circle to its diameter.

The resulting value returned is approximately 3.141592653589793 (to 15 d.p.)

Warnings:

See also:Arithmetic constant, Floating point constant, Math object, Math.acos(), Math.cos(), Math.sin()

Property attributes:

ReadOnly, DontDelete, DontEnum.

Cross-references:

ECMA 262 edition 2 - section - 15.8.1.6

ECMA 262 edition 3 - section - 15.8.1.6