[R] Integer precision etc.
Marc Schwartz
MSchwartz at medanalytics.com
Wed Aug 13 15:20:32 CEST 2003
On Wed, 2003-08-13 at 07:55, Ted.Harding at nessie.mcc.ac.uk wrote:
> 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.
Ted,
See ?.Machine
No experimentation required :-)
HTH,
Marc Schwartz
More information about the R-help
mailing list