Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for roundToInt (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        }
      }
    
      @GwtIncompatible // DoubleMath.roundToInt(double, RoundingMode)
      public void testRoundNaNToIntAlwaysFails() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertThrows(ArithmeticException.class, () -> DoubleMath.roundToInt(Double.NaN, mode));
        }
      }
    
      @GwtIncompatible // DoubleMath.roundToInt(double, RoundingMode)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 27.3K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/math/DoubleMathTest.java

        }
      }
    
      @GwtIncompatible // DoubleMath.roundToInt(double, RoundingMode)
      public void testRoundNaNToIntAlwaysFails() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertThrows(ArithmeticException.class, () -> DoubleMath.roundToInt(Double.NaN, mode));
        }
      }
    
      @GwtIncompatible // DoubleMath.roundToInt(double, RoundingMode)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 27.3K bytes
    - Click Count (0)
  3. android/guava-tests/benchmark/com/google/common/math/DoubleMathRoundingBenchmark.java

          doubleInLongRange[i] = randomDouble(Long.SIZE - 2);
          positiveDoubles[i] = randomPositiveDouble();
        }
      }
    
      @Benchmark
      int roundToInt(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += DoubleMath.roundToInt(doubleInIntRange[j], mode);
        }
        return tmp;
      }
    
      @Benchmark
      long roundToLong(int reps) {
        long tmp = 0;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.7K bytes
    - Click Count (0)
Back to Top