[R] A==A false?

Marc Schwartz marc_schwartz at me.com
Thu Mar 7 16:38:57 CET 2013


On Mar 7, 2013, at 9:33 AM, "Creighton, Sean" <sean.creighton at citi.com> wrote:

>> 
>> as.numeric(ImpVol[1,5,57]) == 0.0001
> [1] FALSE
>> 
>> as.numeric(ImpVol[1,5,57])
> [1] 1e-04
>> 
>> 0.0001
> [1] 1e-04
>> 
> 
> 
> Any tips? 
> Thanks
> Sean


See R "Super FAQ" 7.31:

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

Regards,

Marc Schwartz



More information about the R-help mailing list