I have a poll going on on my intranet.
all votes are stored in a data file.
However there is a decimal point on the voting percentage.
Would anyone know how to round it off to exclude decimal points?
do{
$subdata=explode("][",$data[$a]);
$votes += $subdata[2];
$a++;
}while($a < $nb_answers);
$a=1;
$b="answerv";
$v=100/$votes;
echo "<tr><td><font class=\"text\" size=\"$fontsize\" face=\"$font\"><b>$data[0]</b><br>";
do{
$subdata=explode("][",$data[$a]);
$av = $subdata[2] * $v;
echo "<font class=\"text\" size=\"$fontsize\" face=\"$font\">$subdata[0] -"; printf(" %01.1f", $av); echo"%<br>";
$p2v = 100-$av;
echo "<img src=\"$subdata[1]\" width=\"$av\" height=\"10\"><img src=\"$image\" width=\"$p2v\" height=\"10\"><br><br>";
$a++;
} while ($a < $nb_answers);
}