[R] unexpected results in comparison (x == y)

Jim Lemon jim at bitwrit.com.au
Thu Nov 5 01:58:39 CET 2009


On 11/04/2009 11:49 PM, Peter Tillmann wrote:
> Dear readers of the list,
> ...
> Which is ok, except for ZZ[4] == ZZ[5].
>
> Can someone please give me an advice where to look?
> In real world situations the original vector (X) will contain upto 100
> entries.
>
>    
Hi Peter,
This looks like there is a small difference in the two values that is 
not appearing when printed.

zz[4]-zz[5]
[1] -7.105427e-15

Jim




More information about the R-help mailing list