0

What does it mean by the remainder is shown when using %

15th Apr 2018, 3:49 PM
London
London - avatar
3 Réponses
+ 4
The modulo operator (% symbol) returns the remainder of a division operation of the operands, for example, when you go 5 % 2, you are asking for the remainder of 5 divided by 2, which gives you 1, and 10 % 4 gives you 2, because when you divide 10 by 4 you get 2 left behind after the division.
15th Apr 2018, 3:57 PM
Ipang
+ 2
You're welcome, glad to help : )
15th Apr 2018, 3:59 PM
Ipang
+ 1
Ok, thanks a lot!
15th Apr 2018, 3:58 PM
London
London - avatar