About 1,250,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 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 …

  3. 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 …

  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 - 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 …

  6. How to calculate a Mod b in Casio fx-991ES calculator

    Dec 7, 2011 · This calculator does not have any modulo function. However there is quite simple way how to compute modulo using display mode ab/c (instead of traditional d/c). How to …

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

  8. modulo - Modulus with negative numbers in C++ - Stack Overflow

    Apr 22, 2014 · Does either ANSI C or ISO C specify what -5 % 10 should be?, Modulo operation with negative numbers, Why is the behavior of the modulo operator (%) different between C …

  9. modulo - What does % do in Haskell? - Stack Overflow

    Feb 19, 2019 · I'm used to using % to mean "modulo" in other languages. In Haskell, we have to use mod x y or x `mod` y. So, what is this symbol used for in Haskell?

  10. How to calculate a mod b in Python? - Stack Overflow

    Jun 13, 2009 · Is there a modulo function in the Python math library? Isn't 15 % 4, 3? But 15 mod 4 is 1, right?