diff options
-rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/misc-incorrect-roundings.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-incorrect-roundings.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-incorrect-roundings.rst index abe70b412b2..fa2780788b1 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-incorrect-roundings.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-incorrect-roundings.rst @@ -2,8 +2,10 @@ misc-incorrect-roundings ======================== Checks the usage of patterns known to produce incorrect rounding. -Programmers often use - (int)(double_expression + 0.5) +Programmers often use:: + + (int)(double_expression + 0.5) + to round the double expression to an integer. The problem with this: 1. It is unnecessarily slow. |