Java - Double precision floating point
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8103999/how-to-fix-double-precision-issue-in-java">how to fix double precision issue in java</a>  </p>
</blockquote>



<p>I have a small piece of code like this:</p>

<pre><code>double number1 = 6;
double number2 = 5.99;
double result = number1 - number2;
</code></pre>

<p>However, the <code>result == 0.009999999999999787</code> instead of 0.01</p>

<p>I know it is the issue of IEEE 754 standard, but I don't understand why. Could you please explain it for me?</p>
