[Help!]Ratio
#2

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:
Код:
if ($row['deaths'] == 0) { $ratio1 = $row['kills']; } else { $ratio1 = $row['kills'] / $row['deaths']; }
Reply


Messages In This Thread
[Help!]Ratio - by Zhoom - 01.02.2012, 15:04
Re: [Help!]Ratio - by Zhoom - 02.02.2012, 14:29
Re: [Help!]Ratio - by Niko_boy - 02.02.2012, 15:37
Re: [Help!]Ratio - by Blacklite - 02.02.2012, 18:16
Re: [Help!]Ratio - by Zhoom - 03.02.2012, 07:53
Re: [Help!]Ratio - by Zhoom - 03.02.2012, 14:59
Re: [Help!]Ratio - by Min - 03.02.2012, 16:56
Re: [Help!]Ratio - by Zhoom - 03.02.2012, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)