
Any help will be appreciated

Moderator: Core Staff
Welcome to the world of moddingizak1996 wrote:too bad I didn't found this earlier, it would have saved me a lot of time
Code: Select all
((2/3)*100.00)/100.00
Should you not be rounding down after the multiply or does the use of the ".00" change the format?Rezil wrote:Basic idea, depends on how many decimals you want.Code: Select all
((2/3)*100.00)/100.00
Code: Select all
ratio = ((kills / deaths)*100.00)/100.00;
Code: Select all
ratio = 10000.0 * kills / deaths;
ratio = int(ratio);
ratio = ratio/10000.0;
Code: Select all
ratio = int((kills / deaths)*100.00)/100.00;
Code: Select all
 if(!isDefined(self.welcome))
{
...
self.welcome = true;
}Â