- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testRoundToDouble_maxPreciselyRepresentablePlusOne (0.18 seconds)
-
android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java
new RoundToDoubleTester(BigDecimal.valueOf(1L << 53)) .setExpectation(Math.pow(2, 53), RoundingMode.values()) .test(); } public void testRoundToDouble_maxPreciselyRepresentablePlusOne() { double twoToThe53 = Math.pow(2, 53); // the representable doubles are 2^53 and 2^53 + 2. // 2^53+1 is halfway between, so HALF_UP will go up and HALF_DOWN will go down.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Nov 19 01:35:24 GMT 2025 - 11K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/BigIntegerMathTest.java
.setExpectation(Math.pow(2, 53), RoundingMode.values()) .test(); } @J2ktIncompatible @GwtIncompatible public void testRoundToDouble_maxPreciselyRepresentablePlusOne() { double twoToThe53 = Math.pow(2, 53); // the representable doubles are 2^53 and 2^53 + 2. // 2^53+1 is halfway between, so HALF_UP will go up and HALF_DOWN will go down.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Nov 19 01:35:24 GMT 2025 - 27.1K bytes - Click Count (0)