[R] Modular Arithmetic Error?

iuhz7j202 at sneakemail.com iuhz7j202 at sneakemail.com
Fri Apr 17 16:43:26 CEST 2009


That explains it, thanks. all.equal() gets it right. I always knew I had to be careful with rounding errors, just not with something like (0.2*6)...
I guess I'll just have to avoid using '%%' or '%/%' with non-integers, at least if I need it to sometimes come out even.
Thanks again,
Peter

> That is more or less FAQ 7.31:
> http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f




More information about the R-help mailing list