Skip to content
Prev 6143 / 63424 Next

sum overflow (PR#1091)

Full_Name: Bill Simpson
Version: 1.2.3
OS: linux
Submission from: (NULL) (193.62.250.209)


I think I have found an accuracy problem with sum()
[,1]
[1,] 1.114448e+17
[1] 1.114448e+17
#this should give same answer as above
[1] -652010736
#seems to be due to sum using integer representation which overflows instead of
using
#double representation

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._