less than conditional not working for floats
<p>heres my jquery/javascript code:</p>

<pre><code>amount_sale = parseFloat($('#p_sale span').html()).toFixed(2);
amount_cash = parseFloat($('#p_cash span').html()).toFixed(2);

if (amount_cash &lt; amount_sale)
{
    alert('Cash amount must be greater than or equal to sale amount');
    return;
}
</code></pre>

<p>lets say that the html is as follows:</p>

<pre><code>&lt;p id="p_sale"&gt;Sale: &lt;span&gt;10.00&lt;/span&gt;&lt;/p&gt;
&lt;p id="p_cash"&gt;Cash: &lt;span&gt;20.00&lt;/span&gt;&lt;/p&gt;
</code></pre>

<p>for whatever reason, even if the contents within the p_cash span is greater than the contents within the p_sale span, i still get the alert.</p>

<p>i don't get it.</p>
