We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 010d6f3 + a669fc1 commit be22d21Copy full SHA for be22d21
1 file changed
docs/cpp_tricks.md
@@ -97,7 +97,7 @@ int c = a / b; // c = 14 / 5 = 2
97
int c = floor((float)a / b); // c = floor(2.8) = 2
98
```
99
100
-如果 `a` 除以 `b` 除不尽,那么会找到比他大的第一个整数作为结果,这就是**地板除 (floor div)**。
+如果 `a` 除以 `b` 除不尽,那么会找到比他小的第一个整数作为结果,这就是**地板除 (floor div)**。
101
102
C 语言默认的就是地板除。
103
0 commit comments