Applies to: Math Object
The PI property is used to get the ratio of the circumference of a circle to its diameter, approximately 3.141592653589793.
Syntax
var numVar
numVar = Math.PI
Return value
Returns the ratio of the circumference of a circle to its diameter.
Example
The PI property, a constant, is approximately equal to 3.14159.
See also: Math Object Properties |