Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testRoundLog2Down (0.08 sec)

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

          double z = StrictMath.pow(2.0, log2 - 1);
          assertTrue(z < d);
        }
      }
    
      @GwtIncompatible // DoubleMath.log2(double, RoundingMode), StrictMath
      public void testRoundLog2Down() {
        for (double d : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          int log2 = DoubleMath.log2(d, DOWN);
          if (d >= 1.0) {
            assertTrue(log2 >= 0);
            assertTrue(StrictMath.pow(2.0, log2) <= d);
    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