On the ladder I'm working on I may displaying the players winning percentage but it's not displaying how I would like.
What I get is this 0.800 and what I want is this 80%
This is the code I'm using.
if ($games <= 0) {
$percentage = 100;
$place = 1;
}
else {
$percentage = $wins / $games;
<td width="16%" bgcolor="<?php echo"$color4" ?>" align="center" nowrap><p class="text"><font color="#FFFFF"><?php printf("%.3f", $percentage); ?></font></td
Can anyone tell how I can chane it so it displays the way I want?