/

HTML / CSS / JavaScript Tutorial

JavaScript Math property: PI

[this page | pdf | back links]

The PI property (of the Math object) returns  (the ratio of a circle’s circumference to its diameter).

 

It has the following syntax:

 

Math.PI

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Numbers and Math


Desktop view | Switch to Mobile