What is the meaning of this code
#1

for (new i = length, l = 0; --i >= 0; l ++)
{
if ((l > 0) && (l % 3 == 0)) strins(value, ",", i + 1);
}

i Dont know about this code:

l % 3 == 0

What does the code mean?
Reply
#2

% is the modulo operator. a % b basically gives you the remainder when you divide a by b.

http://en.wikipedia.org/wiki/Modulo_operation
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)