Comment

Comment by throwaway260124

Sorting the floats reduces the error. I think using multiple accumulators reduces the accuracy then. And sorted data is not uncommon.

I think there is always a correct answer and the compiler shouldn’t make changes at least by default that are wrong.

But ways for the programmer to express his intent more clearly are always welcome.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton