Javascript currency formatting
<p>I'm having a pesky issue...</p>

<p>I'm using a small javascript to format currency such as</p>

<p>2990 to 2.990 and 129900 to 129.900 using the current line:</p>

<pre><code>var wdiscount2 = wdiscount.toFixed(3);
</code></pre>

<p>however, when i have a number under 1000 such as 789 it displays like 0.789</p>

<p>Do you have a way for me to get around this easily ?.</p>
