round millions and thousands
<p>I am trying to round large digits</p>

<p>For instance, If I have this number:</p>

<p>Sample#1</p>

<p><code>12,645,982</code></p>

<p>I want to round this to <code>13 mil</code>.</p>

<p>So, it should display  = <code>13 mil</code> as a result</p>

<p>Sample#2</p>

<p>Given number = <code>1,345</code></p>

<p>It should display as  = <code>1 thousand</code></p>

<p>any idea on how to do that in jquery</p>
