Skip to content
Prev 45440 / 63421 Next

double in summary.c : isum

On 13-03-23 10:20 AM, Matthew Dowle wrote:
I think the problem is that there are two opposing targets in R:  we 
want things to be as accurate as possible, and we want them to be 
consistent across platforms. Sometimes one goal wins, sometimes the 
other.  Inconsistencies across platforms give false positives in tests 
that tend to make us miss true bugs.  Some people think we should never 
use LDOUBLE because of that.  In other cases, the extra accuracy is so 
helpful that it's worth it.  So I think you'd need to argue that the 
case you found is something where the benefit outweighs the costs. 
Since almost all integer sums are done exactly with the current code, is 
it really worth introducing inconsistencies in the rare inexact cases?

Duncan Murdoch