I get that the modulo operator (%
) is used to get the remainder of a division, so for example:
7 % 3 = 1
But, why does 1 % 60 = 1
and not 0.084
? (1 - 0.016
)
Why does -1 % 60 = 59
?
There must be something I don't understand about how this operator works.