R largest/smallest representable numbers
<p>I'm trying to get the largest/smallest representable number in R.</p>

<p>After typing ".Machine"</p>

<p>I got:</p>

<pre><code>$double.xmin
[1] 2.225074e-308

$double.xmax
[1] 1.797693e+308
</code></pre>

<p>However even if I type 2.225074e-309 in R command prompt I get 2.225074e-309 instead of the expected 0</p>

<p>How can I find the largest/smallest number for which adding or subtracting 1 would lead to either Inf(Adding 1 to largest number) or 0(subtracting 1 from smallest number) ?</p>