From claudio@unive.it  Thu Jan 24 11:48:57 2002
From: claudio@unive.it (Claudio Agostinelli)
Date: Thu, 24 Jan 2002 12:48:57 +0100 (CET)
Subject: [Rd] round function
In-Reply-To: <200201241046.LAA12336@pubhealth.ku.dk>
Message-ID: <Pine.LNX.4.33L2.0201241235180.7180-100000@linaria.dst.unive.it>

Hy everybody,

if I use round function with numbers bigger than 2147483648 (at least
in my PC running linux) I got
> round(2147483648)
[1] -2147483648
>

trunc, floor and ceiling work fine
> trunc(2147483648)
[1] 2147483648
> ceiling(2147483648)
[1] 2147483648
> floor(2147483648)
[1] 2147483648
>

Is this a bug? If not, I suggest that round give back NA or NaN in these
cases.

best,
Claudio Agostinelli



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 function
Claudio Agostinelli