title: Rounding to two decimal places issue
body: <p>I am loading numeric values to 2 decimal places using Javascript. All values seem okay, apart from £299.90 and £499.90, which loads as £299.9 and £499.9</p>
  
  <p><strong>Current code:</strong></p>
  
  <pre><code>//ROUNDING FUNCTION
  function round(num, decimals) {
       return Math.round(num * Math.pow(10, decimals)) / Math.pow(10, decimals);
  }
  
  //LOADING VALUES - Line cost variable is £49.99/£29.99 * 10
  jQuery(".content").html("£" + round(lineCost, 2));
  </code></pre>
  
  <p><strong>What I have tried:</strong></p>
  
  <pre><code>jQuery(".content").html(parseFloat(lineCost * 100) / 100).toFixed(2);
  
  jQuery(".content").html(Number(lineCost).toFixed(2));
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks.</p>