On Wed, 18 Sep 2019 00:02:47 +0200
Martin Møller Skarbiniks Pedersen <traxpla...@gmail.com> wrote:

> I know I can use gmp and R will do it correctly.

Which is equivalent to what Python does: it uses so-called long
arithmetic, allowing scalar variables with as many digits as it fits in
the computer memory. R by default uses floating-point arithmetic, which
is subject to problems described in [*].

-- 
Best regards,
Ivan

[*] https://www.itu.dk/~sestoft/bachelor/IEEE754_article.pdf or
https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to