Reducing decimals
Posted: Tue Apr 12, 2005 12:00 pm
Hi
I hope someone could tell me how could I reduce to 4 decimals the result of a division of two variables.
Thanks y'all!!
<?php
$var1=22;
$var2=40;
echo $tot=$var1/$var2;
?>
Thanks y'all!!
<?php
$var1=22;
$var2=40;
echo $tot=$var1/$var2;
?>