[R] Why is 0 not an integer?

Giovanni Petris GPetris at uark.edu
Fri Aug 7 00:00:26 CEST 2009


I ran an instant experiment...

> typeof(0)
[1] "double"
> typeof(-0)
[1] "double"
> identical(0, -0)
[1] TRUE

Best,
Giovanni

> By the way:
> 
> Are there difference between -0 and 0?




More information about the R-help mailing list