Why wont this calculate the k/d ratio?
Hello people,
Im using natives to get frags/deaths Why wont this calculate the k/d ratio PHP Code:
|
Re: Why wont this calculate the k/d ratio?
It's unable to divide with zero.
If there are deaths, KPD will be equal with the result of division between kills and deaths. Else, if there are no deaths, KPD will be equal with kills because it's now allowed to divide with zero. PHP Code:
|
Re: Why wont this calculate the k/d ratio?
I didn't understand that :(
|
Re: Why wont this calculate the k/d ratio?
Quote:
Also, as he mentioned, you have to check for the case where you would be dividing by zero which is not allowed. |
Re: Why wont this calculate the k/d ratio?
Solved
|
| All times are GMT -4. The time now is 07:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.