Skip to content
Prev 381081 / 398500 Next

R wrong, Python rigth in calcution

Your numbers are 70 bits long, R double precision numbers are 53 bits long.
You need Rmpfr to get the higher precision.
[1] 68.94936
[1] 569936821221962350592
1 'mpfr' number of precision  70   bits
[1] 569936821221962380720
1 'mpfr' number of precision  210   bits
[1] 3

See FAQ 7.31 and the help files for Rmpfr

Rich
On Tue, Sep 17, 2019 at 6:13 PM Duncan Murdoch <murdoch.duncan at gmail.com> wrote: