Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ToDoubleRounder (0.17 sec)

  1. guava/src/com/google/common/math/ToDoubleRounder.java

    /**
     * Helper type to implement rounding {@code X} to a representable {@code double} value according to
     * a {@link RoundingMode}.
     */
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/ToDoubleRounder.java

    /**
     * Helper type to implement rounding {@code X} to a representable {@code double} value according to
     * a {@link RoundingMode}.
     */
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/BigDecimalMath.java

       */
      public static double roundToDouble(BigDecimal x, RoundingMode mode) {
        return BigDecimalToDoubleRounder.INSTANCE.roundToDouble(x, mode);
      }
    
      private static class BigDecimalToDoubleRounder extends ToDoubleRounder<BigDecimal> {
        static final BigDecimalToDoubleRounder INSTANCE = new BigDecimalToDoubleRounder();
    
        private BigDecimalToDoubleRounder() {}
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. 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 class BigDecimalToDoubleRounder extends ToDoubleRounder<BigDecimal> {
        static final BigDecimalToDoubleRounder INSTANCE = new BigDecimalToDoubleRounder();
    
        private BigDecimalToDoubleRounder() {}
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/BigIntegerMath.java

        return BigIntegerToDoubleRounder.INSTANCE.roundToDouble(x, mode);
      }
    
      @GwtIncompatible
      private static class BigIntegerToDoubleRounder extends ToDoubleRounder<BigInteger> {
        static final BigIntegerToDoubleRounder INSTANCE = new BigIntegerToDoubleRounder();
    
        private BigIntegerToDoubleRounder() {}
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/BigIntegerMath.java

        return BigIntegerToDoubleRounder.INSTANCE.roundToDouble(x, mode);
      }
    
      @GwtIncompatible
      private static class BigIntegerToDoubleRounder extends ToDoubleRounder<BigInteger> {
        static final BigIntegerToDoubleRounder INSTANCE = new BigIntegerToDoubleRounder();
    
        private BigIntegerToDoubleRounder() {}
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/LongMath.java

       * @since 30.0
       */
      @SuppressWarnings("deprecation")
      @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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/LongMath.java

       * @since 30.0
       */
      @SuppressWarnings("deprecation")
      @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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
Back to top