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.
1 parent 07494f6 commit a669fc1Copy full SHA for a669fc1
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