+ 1

Please what does a Modulus do?

32%2

1st Sep 2020, 10:02 PM
Ultra WALKER
Ultra WALKER - avatar
3 ответов
+ 3
Returns the remainder ,which is 0 in the case of 32%2 ,for say 5%4 it would be 1 and 4%5 would be 4
1st Sep 2020, 10:08 PM
Abhay
Abhay - avatar
+ 2
Tindan Sandow which first number ? That's the basic maths you should know ,if you divide 23 by 4 ,the nearest multiple of 4 before 23 is 4*5=20 and the remainder left is 3 Edit:Ah sorry forgot to add "1" up in the answer
1st Sep 2020, 10:19 PM
Abhay
Abhay - avatar
0
So let's say 23%4 the first number is the remaider
1st Sep 2020, 10:09 PM
Ultra WALKER
Ultra WALKER - avatar