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

    Jul 8, 2013 · In mathematics, the result of a modulo operation is the remainder of an arithmetic division. So, in your specific case, when you try to divide 7 bananas into a group of 5 bananas, …

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

    Feb 28, 2018 · 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 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 …

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

    Oct 2, 2024 · 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 …

  5. 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?

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

    Aug 30, 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?

  7. modulo - How to use mod operator in bash? - Stack Overflow

    If someone needs this for mathematical operations, note that modulo operation with negative numbers in bash returns only remainder, not mathematical modulo result. This means, that …

  8. What's the difference between “mod” and “remainder”?

    Dec 3, 2012 · The wiki Euclidean division asserts 0 ≤ r < |b| which means the remainder aka "modulo operation." is always at least 0. What definition are you using that results in -2 and -1?

  9. modulo - Understanding Mod Operator in Math vs Programming

    Apr 14, 2019 · In programming however, there are operators in many languages which can be used to mean either the remainder operator or modulo operator which differ with respect to …

  10. How does the modulo (%) operator work on negative numbers in …

    Oct 7, 2010 · Exactly how does the % operator work in Python, particularly when negative numbers are involved? For example, why does -5 % 4 evaluate to 3, rather than, say, -1?

Refresh