0

what dose this really mean %

am stock

30th Aug 2016, 9:47 PM
andy
andy - avatar
3 Answers
+ 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
30th Aug 2016, 11:48 PM
Zen
Zen - avatar
0
thanks
30th Aug 2016, 11:50 PM
andy
andy - avatar
0
modulus operator, for eg. 5%2=1,(5/2=2,and remainder 1)
3rd Sep 2016, 4:33 AM
if u dare challenge me!
if u dare challenge me! - avatar