About 60 results
Open links in new tab
  1. modulo - What's the syntax for mod in Java? - Stack Overflow

    The modulo operation returning only non-negative results, Rob referred to this as "mod", is called Euclidean modulo in this answer. The answer calls the behavior of Java's remainder operator % …

  2. ¿Cómo utilizar MOD en Java? - Stack Overflow en español

    Sep 25, 2017 · Me podrían ayudar a realizar un programa en JAVA. En el cual ingreso cualquier numero y de como resultado que números se pueden dividir entre 5,3,2 sin dejar residuos. por ejemplo, si …

  3. java - ¿Cómo funciona el operador %? - Stack Overflow en español

    Alguno me puede explicar cómo funciona el operador %: ¿Qué es?¿Cuál es la lógica detrás de ese operador?¿Qué es lo que hace y qué es lo que devuelve? Por ejemplo, el siguiente código en Java …

  4. Using the modulo operator in java - Stack Overflow

    Aug 5, 2019 · Using the modulo operator in java Asked 6 years, 6 months ago Modified 6 years, 6 months ago Viewed 10k times

  5. 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, you're able to …

  6. java - How do I use modulus for float/double? - Stack Overflow

    Jun 1, 2010 · I'm creating an RPN calculator for a school project and having trouble with the modulus operator. Since we're using the double data type, modulus won't work on floating-point numbers. For …

  7. How does java do modulus calculations with negative numbers?

    Am I doing modulus wrong? Because in Java -13 % 64 evaluates to -13 but I want to get 51.

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

  9. What is the modulo operator for longs in Java? - Stack Overflow

    Apr 20, 2011 · How do I find the modulo (%) of two long values in Java? My code says 'Integer number too large' followed by the number I'm trying to mod. I tried casting it to a long but it didn't work. Do I …

  10. Modulo division vs remainder division java - Stack Overflow

    May 15, 2016 · You may be confused by the "modulo operator" in arithmetic, which is the same as the % operator in Java and similar languages, I don't think there is such thing as "modular division". The % …