Es6-math-property-pi

提供:Dev Guides
移動先:案内検索

ES6-Math-PIプロパティ

円の円周と直径の比、約3.14159。

構文

Math.PI

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

出力

3.141592653589793