"The Modulus is the remainder of the euclidean division": According to the Wikipedia article you've referenced, the modulus is the divisor in the modulo operation, not the remainder: "the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another, the latter being called the modulus of the ...
The modulus operator takes a division statement and returns whatever is left over from that calculation, the "remaining" data, so to speak, such as 13 / 5 = 2. Which means, there is 3 left over, or remaining from that calculation.
29 It is the modulo (or modulus) operator: The modulus operator (%) computes the remainder after dividing its first operand by its second. For example:
Modulus is a term used for absolute value in complex analysis, and also a term used for the thing-being-divided-by in remainder arithmetic (actually called modular arithmetic).
Is it a modulus operator or a remainder operator? They differ when the divisor is negative. Specifically, both compute r in D = dq + r, but modulus rounds d towards minus infinity, while remainder rounds d towards zero.
You can think of the modulus operator as giving you a remainder. count % 6 divides 6 out of count as many times as it can and gives you a remainder from 0 to 5 (These are all the possible remainders because you already divided out 6 as many times as you can). The elements of the array are all printed in the for loop, but every time the remainder is 5 (every 6th element), it outputs a newline ...
Possible Duplicate: Recognizing when to use the mod operator What are the practical uses of modulus? I know what modulo division is. The first scenario which comes to my mind is to use it to fi...
For modulus, -1 would be a wrong answer. C's % operator is a remainder operator not a modulus operator though — and for remainder, either 10 or -1 is allowable.
For complex numbers, the notion between "modulus" and "size" goes through the notion that the modulus is a norm, and norms and sizes are intuitively linked. For the split-complex numbers, the modulus is not a norm, so the link between modulus and size does not exist.
The modulus operation is clumsy in general. What you really want to use is congruences (also known as modular arithmetic) instead, which are much better behaved and allow for much (but not all) of the usual manipulations that we are used to.