javascript jquery .each() problem
<p>I have some form input elements with class <em>.commission_plan</em> and different IDs. I need to sum up this element's values. I use this code:</p>

<pre><code>jQuery(document).ready(function() {
    var total = 0;
    $('.commission_plan').each(function() {
        total = total + parseFloat($(this).val());
    });
    $('#payment_total_amount_hidden').val(total);
    $('#payment_total_amount').text('Total: ' + total);
}):
</code></pre>

<p>In my input fields are the values 3.45 and 4.65. But why does <em>#payment_total_amount</em> contain 8.100000000000001? Very strange behavior.</p>
