number % 2
#3

% gives you the remainder of x / y.

For example:

8 % 2 = 0

7 % 3 = 1

12 % 5 = 2

15 % 28 = 15
Reply


Messages In This Thread
number % 2 - by Supercop - 01.07.2012, 14:48
Re: number % 2 - by Vince - 01.07.2012, 14:51
Re: number % 2 - by Hiddos - 01.07.2012, 14:52

Forum Jump:


Users browsing this thread: 2 Guest(s)