title: Round money to nearest 10 dollars in Javascript
body: <p>How can I round a decimal number in Javascript to the nearest 10? My math is pretty rubbish today, it could be the 2 hour sleep :/</p>
  
  <p><strong>Some sample cases</strong></p>
  
  <pre><code>$2823.66  = $2820
  $142.11 = $140
  $9.49 = $10
  </code></pre>
  
  <p>I understand I probably need a combination of Math.round/floor but I can't seem to get expected result.</p>
  
  <p><strong>Any help/pointers appreciated!</strong></p>
  
  <p><strong>M</strong></p>