圆的周长与其直径之比,约为3.14159。
PI - 语法
Math.PI
PI - 示例
console.log(Math.PI) //the ratio of a circle's circumference to its diameter: ~3.142
运行上面代码输出
3.141592653589793
圆的周长与其直径之比,约为3.14159。
Math.PI
console.log(Math.PI) //the ratio of a circle's circumference to its diameter: ~3.142
运行上面代码输出
3.141592653589793
上一篇:无涯教程-LOG10E函数
下一篇:无涯教程-SQRT1_2函数
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M