
See 
http://wiki.r-project.org/rwiki/doku.php?id=misc:r_accuracy:decimal_numbers#sequences_of_decimal_numbers

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


Grześ wrote:
> Do you heve any idea why I get after this instruction everywhere false?
>   
>> seq (0, 1, by=0.1) == 0.3
>>     
>  [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
>
> But after different step it's ok:
>   
>> seq(0, 1, by=0.1) == 0.4
>>     
>  [1] FALSE FALSE FALSE FALSE  TRUE FALSE FALSE FALSE FALSE FALSE FALSE
>
>   

	[[alternative HTML version deleted]]


