Raised This Month: $ Target: $400
 0% 

Why wont this calculate the k/d ratio?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-22-2012 , 15:13   Re: Why wont this calculate the k/d ratio?
Reply With Quote #4

Quote:
Originally Posted by Bilal Pro View Post
I didn't understand that
Well, your first mistake was trying to divide two integers (called integer division) which does not work like it would on a calculator. You have to make them floating point values before you can divide them.

Also, as he mentioned, you have to check for the case where you would be dividing by zero which is not allowed.
__________________
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode