Es6-math-property-pi

提供:Dev Guides
2020年6月23日 (火) 08:04時点におけるMaintenance script (トーク | 投稿記録)による版 (Imported from text file)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

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