a nasty error

Peter Holzer holzer@stat.math.ethz.ch
Thu, 3 Sep 1998 19:26:44 +0200


Dear R-developers

The basic function seq doesn't work properly:

> seq(1,6,by=3)
[1] 1 4 7

Looking at the source code of seq.default I found that strange fuzz thing
"+ 0.4". Taking that away the seq works fine.

My question is: Why has this fuzz thing been added?

If it was for some rounding problems I would suggest to replace "0.4" by
something much smaller.

Peter
____________________________________________________________

Peter Holzer                      phone: + 41 1 632 46 34
Seminar fuer Statistik, SOL F7    fax:   + 41 1 632 10 86
(Sonneggstr. 33)                  <holzer@stat.math.ethz.ch>
ETH (Federal Inst. Technology)
8092 Zurich                       http://www.stat.math.ethz.ch/~holzer/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._