[R] Integer precision etc.

(Ted Harding) Ted.Harding at nessie.mcc.ac.uk
Wed Aug 13 14:55:25 CEST 2003


Hi Folks,
With a bit of experimentation I have determined (I think)
that on my R implementation the largest positive integer
that is exactly represented is (2^53 - 1), based on

> (((2^53)-1)+1) - ((2^53)-1)
[1] 1
> ((2^53)+1) - (2^53)
[1] 0

System:
platform i686-pc-linux-gnu
arch     i686
os       linux-gnu
system   i686, linux-gnu
status
major    1
minor    6.1
year     2002
month    11
day      01
language R

Is there any other way to determine this sort of information?

With thanks,
Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 167 1972
Date: 13-Aug-03                                       Time: 13:55:25
------------------------------ XFMail ------------------------------




More information about the R-help mailing list