R-alpha: seq

Kurt Hornik (Kurt.Hornik@ci.tuwien.ac.at)
Wed, 4 Dec 1996 10:17:19 +0100


Date: Wed, 4 Dec 1996 10:17:19 +0100
Message-Id: <199612040917.KAA21871@aragorn.ci.tuwien.ac.at>
From: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
To: Jim Lindsey <jlindsey@luc.ac.be>
Subject: R-alpha: seq
In-Reply-To: <9612040837.AA07613@alpha.luc.ac.be>

>>>>> On Wed, 4 Dec 1996 09:37:30 +0100 (MET),
>>>>> Jim Lindsey <jlindsey@luc.ac.be> said:

> 1. seq does not all give what is expected, apparently due to rounding.
>   Something like seq(0.1,0.9,by=0.01) may stop at 0.9 or 0.89
>   depending on what the end value is (i.e. if 0.9 is replace by 0.5)
>   Sorry I forgot to note exactly what values workor not.

I can confirm that (Debian GNU/Linux ELF):

R> seq(0.1,0.2,by=0.01)
 [1] 0.10 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.20
R> seq(0.1,0.3,by=0.01)
 [1] 0.10 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.20 0.21 0.22 0.23 0.24
[16] 0.25 0.26 0.27 0.28 0.29

-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-