0

What is the % operator used for?

I don't know

25th Nov 2016, 6:47 PM
Bert Depoorter
Bert Depoorter - avatar
3 Respostas
+ 1
used for find prime numbers for exemple, it is very usefull in cryptography.
27th Nov 2016, 5:11 PM
Benedek Máté Tóth
Benedek Máté Tóth - avatar
0
% = modulo In computing, the modulo operation finds the remainder after division of one number by another (sometimes called modulus). Given two positive numbers, a (the dividend) and n (the divisor), a modulo n (abbreviated as a mod n) is the remainder of the Euclidean division of a by n.
25th Nov 2016, 6:54 PM
Yue Xie
Yue Xie - avatar
0
It's called a modulo operator which simply grabs the remainder of the division of a number by the other. In Python: 5 % 2 = 1 (remainder of 5÷2 is in fact 1)
25th Nov 2016, 7:41 PM
Billy Noah
Billy Noah - avatar