[Rd] Strange behaviour of type conversion (PR#8256)

hadley wickham h.wickham at gmail.com
Thu Oct 27 15:49:48 CEST 2005


> Where is my error??

You are assuming that numbers are represented exactly:
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f

> 0.3/0.1 == 3
[1] FALSE

Hadley



More information about the R-devel mailing list