Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for divisors (0.14 sec)

  1. android/guava/src/com/google/common/math/IntMath.java

          throw new ArithmeticException("Modulus " + m + " must be > 0");
        }
        int result = x % m;
        return (result >= 0) ? result : result + m;
      }
    
      /**
       * Returns the greatest common divisor of {@code a, b}. Returns {@code 0} if {@code a == 0 && b ==
       * 0}.
       *
       * @throws IllegalArgumentException if {@code a < 0} or {@code b < 0}
       */
      public static int gcd(int a, int b) {
        /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
Back to top