Skip to content
Prev 27115 / 63461 Next

x=.94 (PR#10529)

I am using R Version 2.6.2007-11-23.  I do not know if the problem exists
for other values or versions

I encountered a problem when searching for the number 0.94 and 0.95 in a
vector of values.  I illustrate it below by creating a sequence of values 2
ways and then looking for the value 0.94 (same result for 0.95).  It looks
like the vector generated by seq( ) is a bit off:
[1] 0.90 0.91 0.92 0.93 0.94 0.95
[1] 0.90 0.91 0.92 0.93 0.94 0.95
[1] FALSE FALSE FALSE FALSE FALSE FALSE
[1] FALSE FALSE FALSE FALSE  TRUE FALSE
[1] 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 1.110223e-16
[6] 1.110223e-16