Math.PI


圆周长与直径之比约为3.14159。

语法

Math.PI

console.log(Math.PI)  
// the ratio of a circle's circumference to its diameter: ~3.142

输出

3.141592653589793