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

    Jul 8, 2013 · "The Modulus is the remainder of the euclidean division": According to the Wikipedia article you've referenced, the modulus is the divisor in the modulo operation, not the …

  2. What does the `%` (percent) operator mean? - Stack Overflow

    29 It is the modulo (or modulus) operator: The modulus operator (%) computes the remainder after dividing its first operand by its second. For example:

  3. RSA: Get exponent and modulus given a public key

    Jun 25, 2010 · I need to encrypt some data using RSA in JavaScript. All of the libraries around ask for an exponent and a modulus, yet I get a single public.key file from my opponent. How …

  4. How Does Modulus Divison Work - Stack Overflow

    The modulus operator takes a division statement and returns whatever is left over from that calculation, the "remaining" data, so to speak, such as 13 / 5 = 2. Which means, there is 3 left …

  5. What is modulus of complex number i? - Mathematics Stack …

    Nov 2, 2017 · I was going through this theorem and the author had taken |i| to be 1. Is it defined? If yes, how? Also, How do we solve modulus for square roots, in general?

  6. C# modulus operator - Stack Overflow

    Is it a modulus operator or a remainder operator? They differ when the divisor is negative. Specifically, both compute r in D = dq + r, but modulus rounds d towards minus infinity, while …

  7. What are the practical uses of modulus (%) in programming?

    Aug 28, 2010 · Possible Duplicate: Recognizing when to use the mod operator What are the practical uses of modulus? I know what modulo division is. The first scenario which comes to …

  8. c++ - Can't use modulus on doubles? - Stack Overflow

    Feb 4, 2012 · I would recommend to use floor instead of (int) so that the function also works on negative values, returning always positive modulus.

  9. Mod of negative number is melting my brain - Stack Overflow

    I'm trying to mod an integer to get an array position so that it will loop round. Doing i % arrayLength works fine for positive numbers but for negative numbers it all goes wrong. 4 % 3 …

  10. Is there a modulus (not remainder) function / operation?

    Jul 3, 2015 · In Rust (like most programming languages), the % operator performs the remainder operation, not the modulus operation. These operations have different results for negative …