Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testLog10HalfDown (0.06 seconds)

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

          // x^2 >= 10^(2 * result - 1), or else we would have rounded down
          assertTrue(result == 0 || TEN.pow(2 * result - 1).compareTo(x2) <= 0);
        }
      }
    
      @GwtIncompatible // TODO
      public void testLog10HalfDown() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          int result = BigIntegerMath.log10(x, HALF_DOWN);
          BigInteger x2 = x.pow(2);
          // x^2 <= 10^(2 * result + 1), or else we would have rounded up
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 04:51:56 GMT 2026
    - 27.1K bytes
    - Click Count (0)
Back to Top