Re:Mathematics for Programmers [pdf]
by boston_clone on Thursday September 24, 2020 @12:46PM
(#24580590)
Is that due to the division taking place like the parent mentions, or something else?
[ Parent
| on HN ]
Due to how C and C++ are defined in their standards.
The reason behind that is so that the compiler is allowed to assume that expressions like (x + 1 > x) are true, and thus can optimise more.