Top "Modulo" questions

The modulo (sometimes called modulus) operation finds the remainder of division of one number by another.

What is the result of % in Python?

What does the % in a calculation? I can't seem to work out what it does. Does it work out a …

python python-2.7 syntax operators modulo
What's the syntax for mod in java

As an example in pseudocode: if ((a mod 2) == 0) { isEven = true; } else { isEven = false; }

java modulo
Integer division with remainder in JavaScript?

In JavaScript, how do I get: The whole number of times a given integer goes into another? The remainder?

javascript math modulo integer-division
How to get the separate digits of an int number?

I have numbers like 1100, 1002, 1022 etc. I would like to have the individual digits, for example for the first number 1100 I …

java integer modulo
How Does Modulus Divison Work

I don't really understand how modulus division works. I was calculating 27 % 16 and wound up with 11 and I don't understand why. …

language-agnostic math modulo division
How can I calculate divide and modulo for integers in C#?

How can I calculate division and modulo for integer numbers in C#?

c# math operators division modulo
Why does 2 mod 4 = 2?

I'm embarrassed to ask such a simple question. My term does not start for two more weeks so I can't …

modulo
How to use mod operator in bash?

I'm trying a line like this: for i in {1..600}; do wget http://example.com/search/link $i % 5; done; What I'm …

bash modulo arithmetic-expressions
How does a hash table work?

I'm looking for an explanation of how a hash table works - in plain English for a simpleton like me! …

data-structures hash hashtable modulo
What does the percentage sign mean in Python

In the tutorial there is an example for finding prime numbers: >>> for n in range(2, 10): ... for x …

python operators modulo