PI
圆周长与直径之比约为3.14159。
语法 (Syntax)
Math.PI
例子 (Example)
console.log(Math.PI)
// the ratio of a circle's circumference to its diameter: ~3.142
输出 (Output)
3.141592653589793
圆周长与直径之比约为3.14159。
Math.PI
console.log(Math.PI)
// the ratio of a circle's circumference to its diameter: ~3.142
3.141592653589793