Hacker News new | past | comments | ask | show | jobs | submit login

Floating point addition and multiplication are commutative, but are not necessarily associative.



You are correct. I should have been more clear. Our expectation for addition to be associative is deeply ingrained and it's shocking to discover that's not the case when performing floating point computations.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: