[R] Logical inconsistency

Berwin A Turlach berwin at maths.uwa.edu.au
Fri Dec 5 13:42:02 CET 2008


Dear Emma,

On Fri, 5 Dec 2008 04:23:53 -0800 (PST)
emma jane <emma_me_jane at yahoo.com> wrote:
 
> Please could someone kindly explain the following inconsistencies
> I've discovered__when performing logical calculations in R:
> 
> 8.8 - 7.8 > 1
> > TRUE
> 
> 8.3 - 7.3 > 1
> > TRUE

Gladly:  FAQ 7.31
http://cran.at.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f

HTH.

Cheers,

	Berwin

=========================== Full address =============================
Berwin A Turlach                            Tel.: +65 6516 4416 (secr)
Dept of Statistics and Applied Probability        +65 6516 6650 (self)
Faculty of Science                          FAX : +65 6872 3919       
National University of Singapore     
6 Science Drive 2, Blk S16, Level 7          e-mail: statba at nus.edu.sg
Singapore 117546                    http://www.stat.nus.edu.sg/~statba



More information about the R-help mailing list