How to work with large numbers in R?
As Livius points out in his comment, this is an issue with R (and in fact, most programming language), with how numbers are represented in binary. To work with extremely large/small floating point numbers, you can use the Rmpfr library: install.packages(“Rmpfr”) library(“Rmpfr”) x <- c(-2.5e+59, -5.6e+60) y <- mpfr(x, 6) # the second number is … Read more