From P.Dalgaard at biostat.ku.dk  Wed Feb 25 11:30:49 2009
From: P.Dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Wed, 25 Feb 2009 11:30:49 +0100
Subject: [Rd] invalid comparison in numeric sequence (PR#13551)
In-Reply-To: <20090224135524.0113D284A70B@mail.pubhealth.ku.dk>
References: <20090224135524.0113D284A70B@mail.pubhealth.ku.dk>
Message-ID: <49A51DD9.2000704@biostat.ku.dk>

alexandre.courtiol at gmail.com wrote:
>
>> 0.6==0.6
> [1] TRUE
>> seq(0,1,0.1)==0.4
>  [1] FALSE FALSE FALSE FALSE  TRUE FALSE FALSE FALSE FALSE FALSE FALSE
>> seq(0,1,0.1)==0.6
>  [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
>> seq(0,1,0.1)==0.8
>  [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE  TRUE FALSE FALSE
> 
> 
> What is wrong with 0.6 ??? (TRUE is missing)
> I tried 3 differents computers (2 Ubuntu with R 2.8.1, and one Mac with R 2.8).

FAQ 7.31, not a bug. Expect about 10 people to tell you so.

-- 
   O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



[Rd] invalid comparison in numeric sequence (PR#13551)
Peter Dalgaard