[R] Modular Arithmetic Error?

Doran, Harold HDoran at air.org
Fri Apr 17 16:35:35 CEST 2009


You should read the FAQ 7.31 

> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of 
> iuhz7j202 at sneakemail.com
> Sent: Friday, April 17, 2009 10:30 AM
> To: r-help at r-project.org
> Subject: Re: [R] Modular Arithmetic Error?
> 
> A few further oddities (no longer having to do with modular 
> arithmetic):
> 
> > (0.3 * 3) == 0.9
> [1] FALSE
> > (0.2 * 6) == 1.2
> [1] FALSE
> 
> This is bad behavior, right? I feel like I'm going crazy.
> 
> I'm using R version 2.8.1 (2008-12-22).
> 
> Thanks,
> Peter
> 
> ______________________________________________
> R-help at 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.
> 




More information about the R-help mailing list