Skip to content
Prev 6144 / 63424 Next

sum overflow (PR#1091)

It's not a problem with sum:
[1] 333833500
[1] 333833500

are accurate.

The overflow is in the integer arithmetic for *.  That's a question for
your C run-time system.  On a 64-bit machine you might get different
results (although most use 32-bit ints, including mine).

If you use integers you need to be aware of the consequences.  It's a
feature not a bug.
On Thu, 13 Sep 2001 wsi@gcal.ac.uk wrote: