how to format number the using jquery
<p>I am trying to remove the number which are coming after "." then i want to format the number <strong>(16810900.211233)</strong> to like this <strong>(16,810,900)</strong>  but i dont know how to do that here is my  html is this:</p>

<pre><code>&lt;link rel="stylesheet" type="text/css" href="http://cdn.webrupee.com/font" /&gt;
&lt;div class="main"&gt;
&lt;p class="active"&gt;10200.00&lt;/p&gt;
&lt;p class="in_active"&gt;16810900.211233&lt;/p&gt;
&lt;p class="active"&gt;0&lt;/p&gt;
&lt;p class="in_active"&gt;-&lt;/p&gt;
&lt;p class="active"&gt;1278200.543554&lt;/p&gt;
&lt;p class="in_active"&gt;-&lt;/p&gt;
&lt;p class="active"&gt;-&lt;/p&gt;
&lt;p class="in_active"&gt;9,890.656&lt;/p&gt;
&lt;p class="active"&gt;10,200&lt;/p&gt;
&lt;p class="in_active"&gt;16810900&lt;/p&gt;
&lt;p class="active"&gt;0&lt;/p&gt;
&lt;p class="in_active"&gt;-&lt;/p&gt;
&lt;p class="active"&gt;1278200.09&lt;/p&gt;
&lt;p class="in_active"&gt;-&lt;/p&gt;
&lt;p class="active"&gt;-&lt;/p&gt;
&lt;p class="in_active"&gt;9890.00&lt;/p&gt;
&lt;/div&gt;​
</code></pre>

<p>i tried here <a href="http://jsfiddle.net/sureshpattu/Hrac3/2/" rel="nofollow">jsfiddle</a></p>
