title: How do I round millions and thousands in JavaScript?
body: <p>I am trying to round large digits. For instance, if I have this number:</p>
  
  <p><code>12,645,982</code></p>
  
  <p>I want to round this number and display it as:</p>
  
  <p><code>13 mil</code></p>
  
  <p>Or, if I have this number:</p>
  
  <p><code>1,345</code></p>
  
  <p>I want to round it and display it as:</p>
  
  <p><code>1 thousand</code></p>
  
  <p>How do I do this in JavaScript or jQuery?</p>