Files
freeCodeCamp/guide/chinese/javascript/standard-objects/math/math-pi/index.md
2018-10-16 21:32:40 +05:30

19 lines
466 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Math PI
localeTitle: 数学PI
---
## 数学PI
`Math.PI`是Math对象的静态属性。它表示数学常数定义为圆周长与直径的比值。它大约是3.14149,通常用希腊字母π表示。
![pi由pi制成](https://c1.staticflickr.com/2/1207/3352784321_0d648bec78.jpg)
## 例子
```js
Math.PI \\ 3.141592653589793
```
#### 更多信息:
[MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/PI)