Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testLog10Exact (0.05 sec)

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

            assertTrue(result == 0 || TEN.pow(result - 1).compareTo(x) < 0);
          }
        }
      }
    
      // Relies on the correctness of log10(BigInteger, FLOOR).
      @GwtIncompatible // TODO
      public void testLog10Exact() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          int logFloor = BigIntegerMath.log10(x, FLOOR);
          boolean expectSuccess = TEN.pow(logFloor).equals(x);
          try {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Nov 19 01:35:24 UTC 2025
    - 27.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/IntMathTest.java

          }
        }
      }
    
      // Relies on the correctness of log10(int, FLOOR) and of pow(int, int).
      @GwtIncompatible // pow()
      public void testLog10Exact() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          int floor = IntMath.log10(x, FLOOR);
          boolean expectSuccess = IntMath.pow(10, floor) == x;
          try {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
Back to top