RE: [R] Integer precision etc.

2003-08-14 Thread Ted Harding
Thanks to James Holtman for the confirmation of the IEEE definition, and to Marc Schwartz and Roger Koenker for pointing out .Machine which I had not been aware of! For the latter, the information I wanted is in .Machine$double.digits [1] 53 so that the largest integer exactly represented is

RE: [R] Integer precision etc.

2003-08-14 Thread Simon Fear
1e100 is just one example of much bigger number that is exactly represented (in floating point). But of course 1e100+1 - 1e100 [1] 0 You mean the biggest number such that adding one changes the result? I should be extremely careful with print( 9007199254740994, digits=20) [1] 9007199254740994

Re: [R] Integer precision etc.

2003-08-14 Thread Douglas Bates
(Ted Harding) [EMAIL PROTECTED] writes: 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 Those integer

Re: [R] Integer precision etc.

2003-08-14 Thread Marc Schwartz
On Wed, 2003-08-13 at 07:55, [EMAIL PROTECTED] 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)