From csardi at rmki.kfki.hu  Tue Feb 12 15:47:56 2008
From: csardi at rmki.kfki.hu (Gabor Csardi)
Date: Tue, 12 Feb 2008 15:47:56 +0100
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: <20080212144633.GA29059@localdomain>

OMG, not again please!

FAQ 7.31.

Thanks!

On Tue, Feb 12, 2008 at 03:35:09PM +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 :
> 
>  > a<-(58/40-1)
>  > a
> [1] 0.45
>  > b<-(18/40)
>  > b
> [1] 0.45
>  > a<b
> [1] TRUE
>  > a==b
> [1] FALSE
>  >
> Something seems wrong here.
> but if we do
> 
>  > c<-0.45
>  > d<-0.45
>  > c<d
> [1] FALSE
> 
> then everything is ok.
> If we use 59 and 19 instead of 58 and 18, the error is not here anymore. 
> I guess there is a problem with the envelop object for the comparisons 
> between different types in R (as in JAVA maybe) but I am not familiar 
> with the R language.
> I hope this helps, and that this is a real bug, if not, I am sorry to 
> have bothered you.
> 
> Cheers!
> 
> Jacques.
> 
> 
> -- 
> 
> ___________________________________________
> 
> Jacques Labonne, Charg? de Recherches
> UMR ECOBIOP
> "Ecologie Comportementale et Biologie des Populations de Poissons"
> P?le d'Hydrobiologie de Saint P?e sur Nivelle, INRA
> Quartier Ibarron
> 64310 Saint P?e sur Nivelle
> T?l : (0)5 59 51 59 80
> ...................................
> site web http://www.st-pee.inra.fr
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Csardi Gabor <csardi at rmki.kfki.hu>    UNIL DGM



[Rd] 0.45<0.45 = TRUE (PR#10744)
Gabor Csardi