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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to