[Rd] round function
Claudio Agostinelli
claudio@unive.it
Thu, 24 Jan 2002 12:48:57 +0100 (CET)
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._