0
% Sign
Can anyone please explain me % (modulus) sign?
3 Respostas
+ 3
The % symbol stands for the modulus operator. This operator returns the remainder.
For example, 44 / 5 = 8 with a remainder of 4. Thus, 44 % 5 = 4.
+ 2
it returns reminder value..
see these :
hope it helps.
https://www.sololearn.com/discuss/2190788/?ref=app
https://www.sololearn.com/discuss/2102693/?ref=app
https://www.sololearn.com/discuss/2828518/?ref=app
https://www.sololearn.com/discuss/2139117/?ref=app
+ 2
It returns the remainder value. Think of it as what is left after you devide one number by another. So..
9%4 is equal to 1, and..
13%5 would be 3.
Hope this helps clarify it for you.