- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ToDoubleRounder (0.07 sec)
-
guava/src/com/google/common/math/ToDoubleRounder.java
import java.math.RoundingMode; /** * Helper type to implement rounding {@code X} to a representable {@code double} value according to * a {@link RoundingMode}. */ @GwtIncompatible abstract class ToDoubleRounder<X extends Number & Comparable<X>> { /** * Returns x rounded to either the greatest double less than or equal to the precise value of x, * or the least double greater than or equal to the precise value of x. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 5.8K bytes - Viewed (0) -
guava/src/com/google/common/math/BigDecimalMath.java
*/ public static double roundToDouble(BigDecimal x, RoundingMode mode) { return BigDecimalToDoubleRounder.INSTANCE.roundToDouble(x, mode); } private static final class BigDecimalToDoubleRounder extends ToDoubleRounder<BigDecimal> { static final BigDecimalToDoubleRounder INSTANCE = new BigDecimalToDoubleRounder(); private BigDecimalToDoubleRounder() {} @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/math/BigDecimalMath.java
*/ public static double roundToDouble(BigDecimal x, RoundingMode mode) { return BigDecimalToDoubleRounder.INSTANCE.roundToDouble(x, mode); } private static final class BigDecimalToDoubleRounder extends ToDoubleRounder<BigDecimal> { static final BigDecimalToDoubleRounder INSTANCE = new BigDecimalToDoubleRounder(); private BigDecimalToDoubleRounder() {} @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 3K bytes - Viewed (0) -
guava/src/com/google/common/math/BigIntegerMath.java
return BigIntegerToDoubleRounder.INSTANCE.roundToDouble(x, mode); } @GwtIncompatible private static final class BigIntegerToDoubleRounder extends ToDoubleRounder<BigInteger> { static final BigIntegerToDoubleRounder INSTANCE = new BigIntegerToDoubleRounder(); private BigIntegerToDoubleRounder() {} @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.8K bytes - Viewed (0) -
guava/src/com/google/common/math/LongMath.java
* is not precisely representable as a {@code double} * @since 30.0 */ @GwtIncompatible public static double roundToDouble(long x, RoundingMode mode) { // Logic adapted from ToDoubleRounder. double roundArbitrarily = (double) x; long roundArbitrarilyAsLong = (long) roundArbitrarily; int cmpXToRoundArbitrarily; if (roundArbitrarilyAsLong == Long.MAX_VALUE) { /*
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Aug 29 16:20:07 UTC 2025 - 46.8K bytes - Viewed (0)