From tlumley@u.washington.edu  Mon Oct 22 23:53:31 2001
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Mon, 22 Oct 2001 15:53:31 -0700 (PDT)
Subject: [Rd] round() doesnt (PR#1138)
In-Reply-To: <200110222231.f9MMViH22985@arbres1a.FMR.Com>
Message-ID: <Pine.A41.4.33.0110221551430.144652-100000@homer03.u.washington.edu>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] round() doesnt (PR#1138)
Thomas Lumley