0
what dose this really mean %
am stock
3 Réponses
+ 2
% is the modulus operator, giving you the rest of the euclidian division.
a%b is 0 if a is a multiple of b
a%2 is 0 if a is even and 1 if a is odd
a%10 gives you the last digit of a
a%100 gives you the last two digits of a
0
thanks
0
modulus operator, for eg. 5%2=1,(5/2=2,and remainder 1)