09.11.2014, 12:39
I do not have experience with dealing with mathematical calculations In pawn, but since you asked about the usage of '%' in pawn,let me explain it.
% is similar to / but instead of giving the quotient as a result, it gives the remainder as result.
Eg: c=15/10
Here c will give you the value 1 (Quotient)
Eg: c=15%10
Here c will give you the value 5 (since the remainder is 5)
% is similar to / but instead of giving the quotient as a result, it gives the remainder as result.
Eg: c=15/10
Here c will give you the value 1 (Quotient)
Eg: c=15%10
Here c will give you the value 5 (since the remainder is 5)