Calculate a minus operation in javascript returns a incorrect value
<p>This is my javascript code : </p>

<pre><code>var dsum = 0.0;
$.each($("#Report tbody tr"), function () {
    var x = 0.0;

    if ($(this).find("td:eq(3) div").html() != "&amp;nbsp;")
        x = parseFloat($(this).find("td:eq(3) div").html().replace(/,/g, ""));

    dsum += x;

});

var csum = 0.0;

$.each($("#Report tbody tr"), function () {
     var x = 0.0;
     if ($(this).find("td:eq(4) div").html() != "&amp;nbsp;")
         x = parseFloat($(this).find("td:eq(4) div").html().replace(/,/g, ""));
         csum += x;

});


var  lastEvenRow=$("#Report").find("tr:last").hasClass('erow');
$("&lt;tr id='LastRow'&gt;&lt;td colspan='3' style='border-top: 1px solid #DDDDDD;'&gt;&lt;div style='padding:5px;text-align:right;'&gt;Total :&lt;/div&gt;&lt;/td&gt;&lt;td style='text-align:center;height:22px;border-top: 1px solid #DDDDDD;'&gt;&lt;div style='padding:5px;'&gt;" + dsum.toString(10).replace( /(\d)(?=(\d\d\d)+(?!\d))/g , "$1,") + "&lt;/div&gt;&lt;/td&gt;&lt;td style='text-align:center;border-top: 1px solid #DDDDDD;'&gt;&lt;div style='padding:5px;'&gt;" + csum.toString(10).replace( /(\d)(?=(\d\d\d)+(?!\d))/g , "$1,") + "&lt;/div&gt;&lt;/td&gt;&lt;td style='text-align:center;border-top: 0px solid #DDDDDD;'&gt;&lt;div style='padding:5px;border-top: 1px solid #DDDDDD;'&gt;" + (dsum &gt; csum ? (dsum - csum).toString(10).replace( /(\d)(?=(\d\d\d)+(?!\d))/g , "$1,") : "&amp;nbsp;") + "&lt;/div&gt;&lt;/td&gt;&lt;td style='text-align:center;'&gt;&lt;div style='padding:5px;'&gt;" + (csum &gt;= dsum ? (csum - dsum).toString(10).replace( /(\d)(?=(\d\d\d)+(?!\d))/g , "$1,") : "&amp;nbsp;") + "&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;").appendTo("#Report tbody");
if(lastEvenRow==false)
    $("#LastRow").addClass("erow");
</code></pre>

<p><img src="http://i.stack.imgur.com/9daN4.jpg" alt="enter image description here"></p>

<p>As I mentioned in the picture , i think the result must be something like 104,889.01 but , as you see , It is Incorrect value</p>

<p>Is there any body out there to help me ?
Sorry about my bad English syntax(I am new in English)</p>

<p><strong>UPDATE1</strong> : </p>

<p>1318114.01 - 1213225 must be 104889.01 , so why javascript return 104889.01000000001?!!</p>
