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. parent throwaway260124 2 years ago
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.