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;.................

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.