[Rd] round() doesnt (PR#1138)
Thomas Lumley
tlumley@u.washington.edu
Mon, 22 Oct 2001 15:53:31 -0700 (PDT)
On Mon, 22 Oct 2001, David Brahm wrote:
> Hi, all,
>
> I swear, bug.report() ate my message! Apologies to all, esp. Peter who
> will once again have to clean up after my mess...
>
> The bug report was supposed to say:
>
> R> round(100000/3, -2) - 33300
> [1] -7.275958e-12
>
> I would have hoped for 0. The problem seems to be specifically for negative
> "digits".
> -- David Brahm (brahm@alum.mit.edu)
>
> Version:
> platform = sparc-sun-solaris2.6
> arch = sparc
> os = solaris2.6
> system = sparc, solaris2.6
> status =
> major = 1
> minor = 3.0
^^^^^^^^
I can duplicate this under Windows R1.3.0 but not Debian R1.3.1, so it may
have been fixed. Looking at the changes to arithmetic.c I don't see why,
though.
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._