From gavin.simpson at ucl.ac.uk  Tue Feb 12 15:53:19 2008
From: gavin.simpson at ucl.ac.uk (Gavin Simpson)
Date: Tue, 12 Feb 2008 14:53:19 +0000
Subject: [Rd] 0.45<0.45 = TRUE (PR#10744)
In-Reply-To: <20080212143509.6B40F282EF48@mail.pubhealth.ku.dk>
References: <20080212143509.6B40F282EF48@mail.pubhealth.ku.dk>
Message-ID: <1202827999.2701.19.camel@prometheus.geog.ucl.ac.uk>

On Tue, 2008-02-12 at 15:35 +0100, labonne at st-pee.inra.fr wrote:
> Dear developer,
> 
> in my version of R (2.4.0) as weel as in a more recent version (2.6.0) 
> on different computers, we found this problem :

No problem in R. This is the FAQ of all FAQs (Type III SS is probably up
there as well).

See the R FAQ, 7.31, for further information:
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f

For your example:

> all.equal(a, b)
[1] TRUE

<snip />

> I hope this helps, and that this is a real bug, if not, I am sorry to 
> have bothered you.

In future - if you aren't sure that you have found a bug in R, and
you've done your home work (as per the Posting Guide), post a
comment/question on the R Devel list. You'd have gotten the same
response (not a bug, read R FAQ 7.31) but you wouldn't have created
additional work for one the the R Core Development Team who will now
have to deal with your bug report in the R bug tracker.

HTH

G

> 
> Cheers!
> 
> Jacques.
> 
> 
-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



[Rd] 0.45<0.45 = TRUE (PR#10744)
Gavin Simpson