Sum of float64 vector gives slightly incorrect answer

I know this has been a long and wide-ranging discussion, but I feel like it’s incomplete without linking to Stefan’s post about the ability to sum a list of 2046 elements to any floating point value you so choose just based upon its ordering. Because sometimes it’s helpful to see the absolute worst case while you’re chasing the best.

5 Likes