title: How to format all numbers into millions in Ruby using NumberHelper
body: <p>Ruby newbie here - I'm trying to any number (including thousands) into millions, and then rounded up to 2 decimal places, eg:</p>
  <pre><code>1499962946.140625 =&gt; 1499.97
  31135762.5 =&gt; 31.14
  8952392.3125 =&gt; 8.95
  77896 =&gt; 0.08
  5342 =&gt; 0.01
  </code></pre>
  <p>I've tried to do this using the following but so far it is only rounding the millions correctly, and the thousands stay as thousands. I would also like to drop 'Million' and 'Thousand' from the resultant string:</p>
  <pre><code>number_to_human(1234567.12345, precision: 2, significant: false)
  =&gt; &quot;1.2 Million&quot;
  number_to_human(1234.12345, precision: 2, significant: false)
  =&gt; &quot;1.23 Thousand&quot;
  </code></pre>
  <p>Additionally, is there a way to keep the zeros, e.g. <code>1276.40</code> instead of <code>1276.4</code> ?</p>
  <p>Thank you!</p>