.toFixed() not working
<p>im using this code</p>

<pre><code>$('tr').each(function () {
                var td = $(this).children('td').eq(1);
                var val = td.html();
                if (val &gt; 1000) {

                    var fixedVal = parseFloat(parseFloat(val).toFixed(3));
                    td.html(fixedVal / 1000 + " KM");
                }
                else {
                    td.html(Math.round(val) + " M");
                }
            });
</code></pre>

<p>and yet iam getting values like </p>

<pre><code>3.5101280000000004 KM
8761.596300000001 KM
</code></pre>

<p>the problem is that <code>.toFixed()</code> is not working properly.</p>
