Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for roundToLong (0.2 sec)

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

        }
      }
    
      @GwtIncompatible // DoubleMath.roundToLong(double, RoundingMode)
      public void testRoundNaNToLongAlwaysFails() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertThrows(ArithmeticException.class, () -> DoubleMath.roundToLong(Double.NaN, mode));
        }
      }
    
      @GwtIncompatible // DoubleMath.roundToLong(double, RoundingMode)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/DoubleMathTest.java

        }
      }
    
      @GwtIncompatible // DoubleMath.roundToLong(double, RoundingMode)
      public void testRoundNaNToLongAlwaysFails() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertThrows(ArithmeticException.class, () -> DoubleMath.roundToLong(Double.NaN, mode));
        }
      }
    
      @GwtIncompatible // DoubleMath.roundToLong(double, RoundingMode)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/BloomFilter.java

         * is close to 1 (why?), gives the following formula.
         */
        double fractionOfBitsSet = (double) bitCount / bitSize;
        return DoubleMath.roundToLong(
            -Math.log1p(-fractionOfBitsSet) * bitSize / numHashFunctions, RoundingMode.HALF_UP);
      }
    
      /** Returns the number of bits in the underlying bit array. */
      @VisibleForTesting
      long bitSize() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 26.6K bytes
    - Viewed (0)
Back to top