About 4,860,000 results
Open links in new tab
  1. Understanding The Modulus Operator - Stack Overflow

    Jul 8, 2013 · Calculation The modulo operation can be calculated using this equation: a % b = a - floor(a / b) * b floor(a / b) represents the number of times you can divide a by b floor(a / b) * b …

  2. How to calculate a Modulo? - Mathematics Stack Exchange

    May 16, 2015 · 16 I really can't get my head around this "modulo" thing. Can someone show me a general step-by-step procedure on how I would be able to find out the 5 modulo 10, or 10 …

  3. How does the % operator (modulo, remainder) work?

    Let's say that I need to format the output of an array to display a fixed number of elements per line. How do I go about doing that using modulo operation? Using C++, the code below works …

  4. How does a modulo operation work when the first number is …

    Oct 8, 2009 · I'm messing with the modulo operation in python and I understand that it will spit back what the remainder is. But what if the first number is smaller than the second? for …

  5. modulo - Why does 2 mod 4 = 2? - Stack Overflow

    Aug 29, 2009 · I'm embarrassed to ask such a simple question. My term does not start for two more weeks so I can't ask a professor, and the suspense would kill me. Why does 2 mod 4 = 2?

  6. math - Modulo in order of operation - Stack Overflow

    Jun 24, 2010 · Where does modulo come in the mathematical order of operation? I am guessing it is similar to division, but before or after?

  7. How can I use modulo operator (%) in JavaScript? [duplicate]

    How can I use modulo operator (%) in calculation of numbers for JavaScript projects?

  8. python - If statement with modulo operator - Stack Overflow

    Nov 8, 2016 · Open up the Python console, and do 4 % 2, what is the result? Then do 3 % 2, what is the result? Now which of the results would be considered "true"? The modulo operator …

  9. C# modulus operator - Stack Overflow

    I can write the program int a = 3; int b = 4; Console.WriteLine(a % b); The answer I get is 3. How does 3 mod 4 = 3??? I can't figure out how this is getting computed this way.

  10. c - Modulo operation with negative numbers - Stack Overflow

    Jul 30, 2012 · The % operator in C is not the modulo operator but the remainder operator. Modulo and remainder operators differ with respect to negative values. With a remainder operator, the …