02.02.2012, 14:29
nvm, i figured it out.
btw, i've a new problem!
for example, i've 630 kills and 162 deaths and my ratio is : 3.8888888888889
that was an epic number and my question is, how can i make it become 2 decimal point for example: 3.88?
this is my code:
btw, i've a new problem!
for example, i've 630 kills and 162 deaths and my ratio is : 3.8888888888889
that was an epic number and my question is, how can i make it become 2 decimal point for example: 3.88?
this is my code:
Код:
if ($row['deaths'] == 0) { $ratio1 = $row['kills']; } else { $ratio1 = $row['kills'] / $row['deaths']; }