title: html5 canvas percentage loading . any way to remove long values after point. it looks ugly
body: <p>percentage loading shows something like <strong>76.3547435%</strong>. i want only the <strong>76%</strong>  </p>
  
  <pre><code>progress.graphics.drawRect(115,112,400*(event.loaded / event.total),40);
  txt.text = ("Loading " + 100*(event.loaded / event.total) + "%");
  </code></pre>
  
  <p>i checked it by divide <strong>1024</strong> . but it does not work</p>
  
  <pre><code>txt.text = ("Loading " + 100*(event.loaded / event.total) + "%")/1024; 
  </code></pre>