I am trying to get the largest / smallest representable number in R.
After entering ".Machine"
I got:
$double.xmin
[1] 2.225074e-308
$double.xmax
[1] 1.797693e+308
However, even if I type 2.225074e-309 at the R command line, I get 2.225074e-309 instead of the expected 0
How to find the largest / smallest number for which adding or subtracting 1 will result in Inf (adding 1 to the largest number) or 0 (subtracting 1 from the smallest number)?
source
share