- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for 53 (1.25 sec)
-
guava-tests/test/com/google/common/math/BigIntegerMathTest.java
new RoundToDoubleTester(BigInteger.valueOf(1L << 53)) .setExpectation(Math.pow(2, 53), 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.
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 28.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java
new RoundToDoubleTester(BigInteger.valueOf(1L << 53)) .setExpectation(Math.pow(2, 53), 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.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 28.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/BigDecimalMathTest.java
new RoundToDoubleTester(BigDecimal.valueOf(1L << 53)) .setExpectation(Math.pow(2, 53), 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.
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 10.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java
new RoundToDoubleTester(BigDecimal.valueOf(1L << 53)) .setExpectation(Math.pow(2, 53), 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.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 10.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/LongMathTest.java
} catch (IllegalArgumentException expected) { } } private static final long[] roundToDoubleTestCandidates = { 0, 16, 1L << 53, (1L << 53) + 1, (1L << 53) + 2, (1L << 53) + 3, (1L << 53) + 4, 1L << 54, (1L << 54) + 1, (1L << 54) + 2, (1L << 54) + 3, (1L << 54) + 4, 0x7ffffffffffffe00L, // halfway between 2^63 and next-lower double
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 04 20:15:57 GMT 2024 - 32.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/MathTesting.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 11.2K bytes - Viewed (0) -
android/guava/src/com/google/common/math/StatsAccumulator.java
/** * Adds the given values to the dataset. * * @param values a series of values, which will be converted to {@code double} values (this may * cause loss of precision for longs of magnitude over 2^53 (slightly over 9e15)) */ public void addAll(long... values) { for (long value : values) { add(value); } } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri May 12 17:02:53 GMT 2023 - 14.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/MathTesting.java
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 11.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
// The values here look like 111...11101...010 in binary, where the initial 111...1110 takes // up exactly as many bits as can be represented in the significand (24 for float, 53 for // double). That final 0 should be rounded up to 1 because the remaining bits make that number // slightly nearer. long floatConversionTest = 0xfffffe8000000002L; long doubleConversionTest = 0xfffffffffffff402L;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 06 16:10:08 GMT 2024 - 10.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
} catch (IllegalArgumentException expected) { } } private static final long[] roundToDoubleTestCandidates = { 0, 16, 1L << 53, (1L << 53) + 1, (1L << 53) + 2, (1L << 53) + 3, (1L << 53) + 4, 1L << 54, (1L << 54) + 1, (1L << 54) + 2, (1L << 54) + 3, (1L << 54) + 4, 0x7ffffffffffffe00L, // halfway between 2^63 and next-lower double
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 20:15:57 GMT 2024 - 32.5K bytes - Viewed (0)