title: Format a javascript number with a Metric Prefix like 1.5K, 1M, 1G, etc
body: <p>I want to display numbers using a <a href="http://en.wikipedia.org/wiki/SI_prefix" rel="noreferrer">Metric Prefix</a> with 3 significant digits like so:</p>
  
  <pre><code>1 shows as 1
  999 shows as 999
  1000 shows as 1K
  999000 shows as 999K
  1000000 shows as 1M
  1500000 shows as 1.5M
  1000000000 shows as 1G
  etc...
  </code></pre>
  
  <p>I could write my own javascript function to do this but I was wondering if there is a standard way of formatting numbers like this?</p>