title: Round a number to nearest thousand
body: <p>I know it is possible to round a number with <code>Math.floor</code> or <code>Math.round</code> with <code>jquery</code> but i need to round a non decimal number.</p>
  
  <pre><code>var num = 89250;
  var round = Math.round(num);
  </code></pre>
  
  <p>Obviously it's not working, googled but no success, is it possible?</p>
  
  <p>for example i need to round the number below:</p>
  
  <blockquote>
    <p>89250 => <strong>89000</strong></p>
  </blockquote>
  
  <p>i did a trick but don't want a dirty work and also decimal number.</p>
  
  <pre><code>var num = 89250;
  var round = Math.round(+num.toLocaleString('en').replace(',', '.'));
  var total = round.toFixed(3);
  </code></pre>