0

hi,pls wat does this symbol mean(%)?i know it means remainder,but can not seem to understand in what context .

for example if you say

hours = hours%24;
minutes = mins%60;.................

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by masijade
0

Modulus. It produces the "remainder" from a division. I.E. 10 % 3 returns 1 and 11 % 3 returns 2 and 12 % 3 returns 0.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.