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

    Jul 8, 2013 · 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 operation. …

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

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

  5. Bitwise and in place of modulus operator - Stack Overflow

    That is, % is not necessarily the traditional mathematical definition of modulo. Java calls it the "remainder operator", for example. With regards to bitwise optimization, only modulo powers of …

  6. What is the result of % (modulo operator / percent sign) in Python?

    The modulo operator always yields a result with the same sign as its second operand (or zero); the absolute value of the result is strictly smaller than the absolute value of the second …

  7. Understanding the result of modulo operator: - Stack Overflow

    Jul 22, 2016 · I had read that the remainder or result of modulo operator is supposed to be always positive, but this is not the case in R, and the definition and example provide here explain the …

  8. x86 - Assembly Language - How to do Modulo? - Stack Overflow

    Nov 5, 2011 · Is there something like a modulo operator or instruction in x86 assembly?

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

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