- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for doubleValue (0.07 sec)
-
android/guava-tests/test/com/google/common/math/DoubleUtilsTest.java
} } @AndroidIncompatible // TODO(cpovirk): File bug for BigDecimal.doubleValue(). public void testBigToDouble() { for (BigInteger b : ALL_BIGINTEGER_CANDIDATES) { if (b.doubleValue() != DoubleUtils.bigToDouble(b)) { failFormat( "Converting %s to double: expected doubleValue %s but got bigToDouble %s", b, b.doubleValue(), DoubleUtils.bigToDouble(b)); } } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 18:10:55 UTC 2024 - 3K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/DoubleUtilsTest.java
} } @AndroidIncompatible // TODO(cpovirk): File bug for BigDecimal.doubleValue(). public void testBigToDouble() { for (BigInteger b : ALL_BIGINTEGER_CANDIDATES) { if (b.doubleValue() != DoubleUtils.bigToDouble(b)) { failFormat( "Converting %s to double: expected doubleValue %s but got bigToDouble %s", b, b.doubleValue(), DoubleUtils.bigToDouble(b)); } } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 18:10:55 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/DefaultsTest.java
assertEquals(0, Defaults.defaultValue(long.class).longValue()); assertEquals(0.0f, Defaults.defaultValue(float.class).floatValue()); assertThat(Defaults.defaultValue(double.class).doubleValue()).isEqualTo(0.0d); assertNull(Defaults.defaultValue(void.class)); assertNull(Defaults.defaultValue(String.class)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 18:10:55 UTC 2024 - 1.6K bytes - Viewed (0) -
guava/src/com/google/common/math/BigDecimalMath.java
private BigDecimalToDoubleRounder() {} @Override double roundToDoubleArbitrarily(BigDecimal bigDecimal) { return bigDecimal.doubleValue(); } @Override int sign(BigDecimal bigDecimal) { return bigDecimal.signum(); } @Override BigDecimal toX(double d, RoundingMode mode) { return new BigDecimal(d);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 23 18:45:50 UTC 2023 - 3.1K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/LongAdder.java
@Override public float floatValue() { return (float) sum(); } /** Returns the {@link #sum} as a {@code double} after a widening primitive conversion. */ @Override public double doubleValue() { return (double) sum(); } private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); s.writeLong(sum()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 18:00:07 UTC 2021 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/math/DoubleUtils.java
return longBitsToDouble(significand | ONE_BITS); } static double bigToDouble(BigInteger x) { // This is an extremely fast implementation of BigInteger.doubleValue(). JDK patch pending. BigInteger absX = x.abs(); int exponent = absX.bitLength() - 1; // exponent == floor(log2(abs(x))) if (exponent < Long.SIZE - 1) { return x.longValue();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 5.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedLong.java
// So we can ignore the bottom 8, except for rounding. See doubleValue() for more. return (float) ((value >>> 1) | (value & 1)) * 2f; } /** * Returns the value of this {@code UnsignedLong} as a {@code double}, analogous to a widening * primitive conversion from {@code long} to {@code double}, and correctly rounded. */ @Override public double doubleValue() { if (value >= 0) { return (double) value;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Apr 22 13:09:25 UTC 2021 - 8.9K bytes - Viewed (0) -
guava/src/com/google/common/primitives/UnsignedLong.java
// So we can ignore the bottom 8, except for rounding. See doubleValue() for more. return (float) ((value >>> 1) | (value & 1)) * 2f; } /** * Returns the value of this {@code UnsignedLong} as a {@code double}, analogous to a widening * primitive conversion from {@code long} to {@code double}, and correctly rounded. */ @Override public double doubleValue() { if (value >= 0) { return (double) value;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Apr 22 13:09:25 UTC 2021 - 8.9K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/LongAdder.java
@Override public float floatValue() { return (float) sum(); } /** Returns the {@link #sum} as a {@code double} after a widening primitive conversion. */ @Override public double doubleValue() { return (double) sum(); } private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); s.writeLong(sum()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 20 18:43:59 UTC 2021 - 5.4K bytes - Viewed (0) -
guava/src/com/google/common/hash/LongAdder.java
@Override public float floatValue() { return (float) sum(); } /** Returns the {@link #sum} as a {@code double} after a widening primitive conversion. */ @Override public double doubleValue() { return (double) sum(); } private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); s.writeLong(sum()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 20 18:43:59 UTC 2021 - 5.4K bytes - Viewed (0)