Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ToDoubleRounder (0.15 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)
Back to top