title: Round Percentages PHP
body: <p>I'm currently dividing two values in order to get the percentage from the actual count and the total count for my application.</p>
  
  <p>I am using the following formula:</p>
  
  <pre><code>echo ($fakecount / $totalcount) * 100;
  </code></pre>
  
  <p>That is giving me a value like: 79.2312313. I would perefer a value like 79%.</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>echo round($fakecount / $totalcount) * 100; 
  </code></pre>
  
  <p>this doesn't seem to work correctly.</p>
  
  <p>Any suggestions?</p>