javascript weirdness with toFixed
<p>Comparing floats. According to the fist block of code, 5 is greater than 37.66.   The second block claims that 5 is less than 37.66.  What is toFixed() doing to these that makes the first block react the way it does?  (This has only been tested on chrome in ubuntu)</p>

<pre><code>amount = 5
total = 37.66
check = null
if(parseFloat(amount).toFixed(2) &gt;= parseFloat(total).toFixed(2)){
    check = "amount IS GREATER"
}
</code></pre>

<p>check >> "amount IS GREATER"</p>

<pre><code>amount = 5
total = 37.66
check = null
if(parseFloat(amount.toFixed(2)) &gt;= parseFloat(total.toFixed(2))){
    check = "amount IS GREATER"
}
</code></pre>

<p>check >> null</p>
