Is floating-point addition and multiplication associative?

Floating point addition is not necessarily associative. If you change the order in which you add things up, this can change the result. The standard paper on the subject is What Every Computer Scientist Should Know about Floating Point Arithmetic. It gives the following example: Another grey area concerns the interpretation of parentheses. Due to … Read more