From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Math Object
The PI property returns the ratio of a circle's area to the square of its radius, approximately 3.14159.
| Math.PI |
ExampleReturn PI:
The output of the code above will be:
Try it yourself » |
JavaScript Math Object
From http://www.w3schools.com (Copyright Refsnes Data)