[R] Mismatch in logical result?

Heinz Tuechler tuechler at gmx.at
Fri Nov 7 11:33:40 CET 2008


Maybe this?
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f

At 11:23 07.11.2008, Shubha Vishwanath Karanth wrote:
>Content-Type: text/plain
>Content-Disposition: inline
>Content-length: 569
>
>
>
>Hi R,
>
>
>
>I have certain checkings, which gives FALSE, but 
>actually it is true. Why does this happen? Note 
>that the equations that I am checking below are 
>not even the case of recurring decimals...
>
>
>
> > 1.4^2 == 1.96
>
>[1] FALSE
>
>
>
> > 1.2^3==1.728
>
>[1] FALSE
>
>
>
>
>
>Thanks in advance, Shubha
>
>Shubha Karanth | Amba Research
>
>Ph +91 80 3980 8031 | Mob +91 94 4886 4510
>
>Bangalore * Colombo * London * New York * San 
>José * Singapore * www.ambaresearch.com
>
>
>
>This e-mail may contain confidential and/or privileged i...{{dropped:13}}
>
>
>______________________________________________
>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