title: JQuery round up the length of a result
body: <p>I am using this code:</p>
  
  <pre><code>$("#total_percentage").text(
      (parseInt($("#capacity").text(), 10) / parseInt($("#total").text(), 10))
  );
  </code></pre>
  
  <p>My problem is that #total_percentage sometimes gives a long result.</p>
  
  <p>e.g: 2.33333333333</p>
  
  <p>Is there a way to setting it so it rounds up / shows only max of 2 digits?</p>
  
  <p>for example: 2 or 10</p>