PHP ratio help
#1

Код:
    $a = "$GetPlayerKills";
    $b = "$GetPlayerDeaths";
    $total = $a / $b;
I want it to be " 1.99 " not " 1.99999999 "

any idea ?
Reply
#2

Try this after defining $total variable.
PHP код:
echo round($total1PHP_ROUND_HALF_UP); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)