Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for 254 (0.35 sec)

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

            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_twoToThe54PlusOne() {
        double twoToThe54 = Math.pow(2, 54);
        // the representable doubles are 2^54 and 2^54 + 4
        // 2^54+1 is less than halfway between, so HALF_DOWN and HALF_UP will both go down.
        new RoundToDoubleTester(BigInteger.valueOf((1L << 54) + 1))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        assertThat(Chars.constrainToRange((char) 1, (char) 3, (char) 5)).isEqualTo((char) 3);
        assertThat(Chars.constrainToRange((char) 255, (char) 250, (char) 254)).isEqualTo((char) 254);
        assertThat(Chars.constrainToRange((char) 5, (char) 2, (char) 2)).isEqualTo((char) 2);
        assertThrows(
            IllegalArgumentException.class, () -> Chars.constrainToRange((char) 1, (char) 3, (char) 2));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/BigIntegerMath.java

        if (log2 < Double.MAX_EXPONENT) {
          sqrt0 = sqrtApproxWithDoubles(x);
        } else {
          int shift = (log2 - DoubleUtils.SIGNIFICAND_BITS) & ~1; // even!
          /*
           * We have that x / 2^shift < 2^54. Our initial approximation to sqrtFloor(x) will be
           * 2^(shift/2) * sqrtApproxWithDoubles(x / 2^shift).
           */
          sqrt0 = sqrtApproxWithDoubles(x.shiftRight(shift)).shiftLeft(shift >> 1);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
Back to top