Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testRoundLog2Ceiling (3.05 sec)

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

          assertTrue(StrictMath.pow(2.0, log2) <= d);
          assertTrue(StrictMath.pow(2.0, log2 + 1) > d);
        }
      }
    
      @GwtIncompatible // DoubleMath.log2(double, RoundingMode), StrictMath
      public void testRoundLog2Ceiling() {
        for (double d : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          int log2 = DoubleMath.log2(d, CEILING);
          assertTrue(StrictMath.pow(2.0, log2) >= d);
          double z = StrictMath.pow(2.0, log2 - 1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.3K bytes
    - Viewed (0)
Back to top