title: In Javascript, is toFixed() accurate enough for currency?
body: <p>I am creating a script for calculating an order total. There are certain variables that can change the price and therefore some long-digit decimals will occur.</p>
  
  <p>Is <code>toFixed()</code> precise enough to round these numbers and always get the same result?</p>
  
  <p>Edit:
  The solution I came up with is to use this:</p>
  
  <pre><code>Number.prototype.toCurrency = function(){
      return Math.round(this*100)/100;
  }
  </code></pre>
  
  <p>Is this sufficient for consistency?</p>