Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Fortran requires compilers to “honor the integrity of parentheses” but otherwise doesn’t restrict compilers from rearranging expressions. Want a specific order of operations and rounding? Use parentheses to force them. This is why you’ll sometimes see parens around operations that already have arithmetic precedence, like `(x times x)-(y times y)`, to prevent the use of FMA for one of the multiplications but not the other.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: