PHP not dividing correctly
<p>I have some PHP code that is dividing two numbers that are pulled from a mySQL database however it is not computing correctly. When I echo $comm and <code>$total_fix</code> individually, the numbers are correct. However, when I echo the division of the two it is not the correct answer. Both numbers are <code>DECIMAL(10,0)</code> data type in the database. Below is the PHP code</p>

<pre><code>$percent_comm = $comm / $total_fix;
$percent_comm = number_format($percent_comm, 2, '.', ',');                     
echo "&lt;td align=\"center\"&gt;".$percent_comm."&lt;/td&gt;";
</code></pre>

<p>here <code>$comm = 2700</code>, <code>$total_fix = 75</code> but <code>$percent_comm</code> is computing to be <code>0.03</code> when it should be <code>36</code></p>
