title: decimal js rounding 3digit numbers [probably a bug?]
body: <p>I'm using the decimal.js to calculate with numbers and using the advantages by handling big numbers..</p>
  
  <p>Now i came to the point where i want to round numbers to a specific multiplicator.</p>
  
  <p>everything worked fine, until i found this issue;</p>
  
  <pre><code>new Decimal(750).toNearest(500,3).toNumber() //-&gt; 500
  </code></pre>
  
  <p>this line will output 500. Is it simply a bug or did I made a fault in my code? And if its a fault i'm wondering why its happening only at this specific numbers showed below...</p>
  
  <pre><code>new Decimal(75).toNearest(50,2).toNumber() //-&gt; 100
  new Decimal(7500).toNearest(5000,4).toNumber() //-&gt; 10'000
  </code></pre>
  
  <p>when u play a little bit with these statements at <a href="https://mikemcl.github.io/decimal.js/" rel="nofollow">decimal.js API</a> </p>
  
  <p>only the 3 digit number could be round correctly:</p>
  
  <pre><code>new Decimal(300).toNearest(200,3).toNumber() //-&gt; 200
  new Decimal(450).toNearest(300,3).toNumber() //-&gt; 300
  new Decimal(600).toNearest(400,3).toNumber() //-&gt; 400
  </code></pre>