Skip to content

Commit a77ba27

Browse files
authored
Merge pull request wangdoc#182 from byog/patch-1
Update math.md
2 parents e793217 + 7cb09b2 commit a77ba27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/stdlib/math.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ Math.max() // -Infinity
6666

6767
### Math.floor(),Math.ceil()
6868

69-
`Math.floor`方法返回小于参数值的最大整数(地板值)。
69+
`Math.floor`方法返回小于或等于参数值的最大整数(地板值)。
7070

7171
```javascript
7272
Math.floor(3.2) // 3
7373
Math.floor(-3.2) // -4
7474
```
7575

76-
`Math.ceil`方法返回大于参数值的最小整数(天花板值)。
76+
`Math.ceil`方法返回大于或等于参数值的最小整数(天花板值)。
7777

7878
```javascript
7979
Math.ceil(3.2) // 4

0 commit comments

Comments
 (0)