Working out percentages and stuff.
#1

Hi, im really confused with working out percentages.

This is what i've tried so far, but went horrible wrong.

pawn Код:
new percent = 3; //3 percent

new Float:earned = PropData[propertyid][p_Sell] - ((PropData[propertyid][p_Sell] / 100.0) * percent);
I end up getting some crazy long number.. Can someone help with this please?
Reply


Messages In This Thread
Working out percentages and stuff. - by Outbreak - 02.07.2009, 20:14
Re: Working out percentages and stuff. - by Ignas1337 - 02.07.2009, 20:16
Re: Working out percentages and stuff. - by BMUK - 02.07.2009, 20:22
Re: Working out percentages and stuff. - by Outbreak - 02.07.2009, 21:36

Forum Jump:


Users browsing this thread: 1 Guest(s)