- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testRoundToDouble_twoToThe54PlusThree (0.49 sec)
-
android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java
.setExpectation(Math.nextUp(twoToThe54), CEILING, UP) .roundUnnecessaryShouldThrow() .test(); } public void testRoundToDouble_twoToThe54PlusThree() { double twoToThe54 = Math.pow(2, 54); // the representable doubles are 2^54 and 2^54 + 4 // 2^54+3 is more than halfway between, so HALF_DOWN and HALF_UP will both go up.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 10.6K bytes - Viewed (0)