Re: [Rd] bug? (PR#8074)

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Tue 16 Aug 2005 - 23:06:48 GMT

On Wed, 17 Aug 2005 pmosquin@hotmail.com wrote:
> I just don't understand this:
>
>> (2*2)==4
> [1] TRUE
>> .2*.2
> [1] 0.04
>> (.2*.2)==.04
> [1] FALSE
It's a FAQ, not a bug. Consider:

> (.2*.2) - .04

[1] 6.938894e-18

and read the FAQ

         -thomas

> or
>
>> x=.04
>> x
> [1] 0.04
>> y=.2*.2
>> y
> [1] 0.04
>> y==x
> [1] FALSE
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley@u.washington.edu	University of Washington, Seattle

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Aug 17 09:10:36 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:16 GMT