- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for checkInRangeForRoundingInputs (0.6 sec)
-
android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java
} public void testCheckInRange_success() { MathPreconditions.checkInRangeForRoundingInputs(true, 1.0, RoundingMode.UP); } public void testCheckInRange_failure() { ArithmeticException expected = assertThrows( ArithmeticException.class, () -> MathPreconditions.checkInRangeForRoundingInputs(false, 1.0, RoundingMode.UP)); assertThat(expected).hasMessageThat().contains("1.0");
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 8K bytes - Viewed (0) -
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); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3.2K bytes - Viewed (0)