Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testLog10TrivialOnPowerOf10 (0.08 sec)

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

          assertEquals(BigIntegerMath.log10(x, floorWasEven ? HALF_DOWN : HALF_UP), halfEven);
        }
      }
    
      @GwtIncompatible // TODO
      public void testLog10TrivialOnPowerOf10() {
        BigInteger x = BigInteger.TEN.pow(100);
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertEquals(100, BigIntegerMath.log10(x, mode));
        }
      }
    
      @GwtIncompatible // TODO
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

              failFormat("expected log10(%s, UNNECESSARY) = %s; got ArithmeticException", x, floor);
            }
          }
        }
      }
    
      @GwtIncompatible // TODO
      public void testLog10TrivialOnPowerOf10() {
        long x = 1000000000000L;
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertEquals(12, LongMath.log10(x, mode));
        }
      }
    
      @GwtIncompatible // TODO
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
Back to top