Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testConstantsHalfPowersOf10 (0.19 sec)

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

              IntMath.maxLog10ForLeadingZeros[i]);
        }
      }
    
      @GwtIncompatible // BigIntegerMath // TODO(cpovirk): GWT-enable BigIntegerMath
      public void testConstantsHalfPowersOf10() {
        for (int i = 0; i < IntMath.halfPowersOf10.length; i++) {
          assertEquals(
              IntMath.halfPowersOf10[i],
              min(
                  Integer.MAX_VALUE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/IntMathTest.java

              IntMath.maxLog10ForLeadingZeros[i]);
        }
      }
    
      @GwtIncompatible // BigIntegerMath // TODO(cpovirk): GWT-enable BigIntegerMath
      public void testConstantsHalfPowersOf10() {
        for (int i = 0; i < IntMath.halfPowersOf10.length; i++) {
          assertEquals(
              IntMath.halfPowersOf10[i],
              min(
                  Integer.MAX_VALUE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

        }
        assertThrows(
            ArithmeticException.class, () -> LongMath.checkedPow(10, LongMath.powersOf10.length));
      }
    
      @GwtIncompatible // TODO
      public void testConstantsHalfPowersOf10() {
        for (int i = 0; i < LongMath.halfPowersOf10.length; i++) {
          assertEquals(
              BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR),
              BigInteger.valueOf(LongMath.halfPowersOf10[i]));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top