How to format numbers using javascript?
<p>I want to format numbers using javascript.</p>

<p>For example:</p>

<pre><code>10     =&gt; 10.00
100    =&gt; 100.00
1000   =&gt; 1,000.00
10000  =&gt; 10,000.00
100000 =&gt; 1,00,000.00
</code></pre>
