Описание тега modulo
The modulo (sometimes called modulus) operation finds the remainder of division of one number by another. It's typically represented by the percent ('%') character in programming languages.
The modulo (sometimes called modulus) operation finds the remainder of division of one number by another. It's typically represented by the percent ('%
') character in programming languages.
For example, assuming %
as the character representing this operation, the expresssion 8 % 3
would yield a result of 2
: the remainder after dividing 8
by 3
.