Skip to content
Prev 274961 / 398502 Next

Strange R behavior for product of two sum of integers

On Oct 20, 2011, at 16:50 , David Winsemius wrote:

            
The addition operator doesn't either:
[1] NA
Warning message:
In (sum(1000:1205)) * (sum(1000:1204) + 1205L) :
  NAs produced by integer overflow

Beware that 1:1 is integer but 1 is not.