[Include] float2.inc - Additional operators for floats
#4

If you didn't understand, what it's for, then you probably won't need it. Modulus operator is used to find the remainder of a division. You probably learnt it in ~fourth grade.

Quote:

17 / 4 = 4
4 * 4 = 16
17 - 16 = 1
---
17 % 4 = 1

In PAWN (also in the latest version at CompuPhase - downloaded the latest package just to check this out), modulus is forbidden/unimplemented.
Reply


Messages In This Thread
float2.inc - Additional operators for floats - by kristo - 14.07.2015, 09:36
Re: float2.inc - Additional operators for floats - by kristo - 22.07.2015, 17:32
Re: float2.inc - Additional operators for floats - by CodeStyle175 - 23.07.2015, 09:20
Re: float2.inc - Additional operators for floats - by kristo - 23.07.2015, 09:32
Re: float2.inc - Additional operators for floats - by CodeStyle175 - 23.07.2015, 09:36
Re: float2.inc - Additional operators for floats - by kristo - 23.07.2015, 09:42

Forum Jump:


Users browsing this thread: 2 Guest(s)