Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for checkInRangeForRoundingInputs (0.23 sec)

  1. android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java

        } catch (ArithmeticException expected) {
        }
      }
    
      public void testCheckInRange_success() {
        MathPreconditions.checkInRangeForRoundingInputs(true, 1.0, RoundingMode.UP);
      }
    
      public void testCheckInRange_failure() {
        try {
          MathPreconditions.checkInRangeForRoundingInputs(false, 1.0, RoundingMode.UP);
          fail();
        } catch (ArithmeticException expected) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/MathPreconditionsTest.java

        } catch (ArithmeticException expected) {
        }
      }
    
      public void testCheckInRange_success() {
        MathPreconditions.checkInRangeForRoundingInputs(true, 1.0, RoundingMode.UP);
      }
    
      public void testCheckInRange_failure() {
        try {
          MathPreconditions.checkInRangeForRoundingInputs(false, 1.0, RoundingMode.UP);
          fail();
        } catch (ArithmeticException expected) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/MathPreconditions.java

      }
    
      static void checkRoundingUnnecessary(boolean condition) {
        if (!condition) {
          throw new ArithmeticException("mode was UNNECESSARY, but rounding was necessary");
        }
      }
    
      static void checkInRangeForRoundingInputs(boolean condition, double input, RoundingMode mode) {
        if (!condition) {
          throw new ArithmeticException(
              "rounded value is out of range for input " + input + " and rounding mode " + mode);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/DoubleMath.java

    import static com.google.common.math.DoubleUtils.isNormal;
    import static com.google.common.math.DoubleUtils.scaleNormalize;
    import static com.google.common.math.MathPreconditions.checkInRangeForRoundingInputs;
    import static com.google.common.math.MathPreconditions.checkNonNegative;
    import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
    import static java.lang.Math.abs;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
Back to top