How do i check if a value is NOT a multiple of 32?
Printable View
How do i check if a value is NOT a multiple of 32?
You can run a loop x/32 number of times.
On each loop, set a counter to (loopindex("loop")+1) * 32
After the loop is ran, check if the value of the counter equals x. If it is, then it is a multiple of 32. If not, it isn't :)
For instance, the value is 100.
The loop is ran 100/32 = 3 times
1 * 32 = 32
2 * 32 = 64
3 * 32 = 96
96 is not 100, so 100 is not a multiple of 32.
If the value is 64
The loop is ran 64/32 = 2 times
1 * 32 = 32
2 * 32 = 64
64 = 64, so 64 is a multiple of 32.
If x mod 32 > 0 then not a multiple