Java Calculations
<p>Why does:</p>

<pre><code>System.out.println((3 + 7 + 10) * (1000 - 8) / (992 - 17))
</code></pre>

<p>print <code>3</code> and not <code>20</code>?</p>

<pre><code>System.out.println (2.0 + 1.0/2 + 1.0/6 + 1.0/24 + 1.0/120)
</code></pre>

<p>print <code>2.7166666666666663</code> and not <code>2.716666667</code>?</p>

<pre><code>System.out.println (2147483647 + 1)
</code></pre>

<p>print <code>-2147483648</code> and not <code>2147483648</code>?</p>
