A PHP BUG, very simple. How to fix?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2100490/floating-point-inaccuracy-examples">Floating point inaccuracy examples</a>  </p>
</blockquote>



<pre><code>&lt;?php
$a = 128.3;
$b = 140.7;
$c = 12.4;
echo $a-$b+$c;   //2.30926389122E-14
?&gt;
</code></pre>

<p>it will display "2.30926389122E-14"</p>

<p>Why it is NOT zero ??</p>

<pre><code>&lt;?php
$a = 112.7;
$b = 125.2;
$c = 12.5;
echo $a-$b+$c;   //0
?&gt;
</code></pre>

<p>whats the difference between them?</p>
