[R] bug?

Marc Vandemeulebroecke vandemem at gmx.de
Mon Jul 14 09:29:50 CEST 2003


Dear R programmers,

is there a sensible explanation for the following behaviour? The second
command seems not to be interpreted correctly.

> seq(0.6, 0.9, by=0.1) == 0.8
[1] FALSE FALSE  TRUE FALSE
> seq(0.7, 0.9, by=0.1) == 0.8
[1] FALSE FALSE FALSE
> c(0.7, 0.8, 0.9) == 0.8
[1] FALSE  TRUE FALSE
> seq(0.9, 0.7, by=-0.1) == 0.8
[1] FALSE  TRUE FALSE

I am running R version 1.7.1 on XP and NT.

Thanks,
Marc

--




More information about the R-help mailing list