Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for NEGATIVE_INFINITY (0.12 sec)

  1. guava/src/com/google/common/math/ToDoubleRounder.java

            case HALF_UP:
              return Double.MAX_VALUE * sign(x);
            case FLOOR:
              return (roundArbitrarily == Double.POSITIVE_INFINITY)
                  ? Double.MAX_VALUE
                  : Double.NEGATIVE_INFINITY;
            case CEILING:
              return (roundArbitrarily == Double.POSITIVE_INFINITY)
                  ? Double.POSITIVE_INFINITY
                  : -Double.MAX_VALUE;
            case UP:
              return roundArbitrarily;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

        new RoundToDoubleTester(minDoubleAsBigDecimal)
            .setExpectation(-Double.MAX_VALUE, DOWN, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN)
            .setExpectation(Double.NEGATIVE_INFINITY, UP, FLOOR)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      public void testRoundToDouble_negativeWayTooBig() {
        BigDecimal bi = BigDecimal.valueOf(2).pow(2 * Double.MAX_EXPONENT).negate();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/DoubleUtilsTest.java

        }
        assertThat(DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY)).isPositiveInfinity();
        assertThat(DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY)).isEqualTo(0.0);
        assertThrows(IllegalArgumentException.class, () -> DoubleUtils.ensureNonNegative(Double.NaN));
      }
    
      public void testOneBits() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/MathTesting.java

      static final ImmutableSet<Double> FRACTIONAL_DOUBLE_CANDIDATES;
      static final Iterable<Double> INFINITIES =
          Doubles.asList(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY);
      static final Iterable<Double> FINITE_DOUBLE_CANDIDATES;
      static final Iterable<Double> POSITIVE_FINITE_DOUBLE_CANDIDATES;
      static final Iterable<Double> ALL_DOUBLE_CANDIDATES;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

        new RoundToDoubleTester(minDoubleAsBigInteger)
            .setExpectation(-Double.MAX_VALUE, DOWN, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN)
            .setExpectation(Double.NEGATIVE_INFINITY, UP, FLOOR)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_negativeWayTooBig() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            assertTrue(infinityOpt.isPresent());
            assertTrue(Double.isInfinite(infinityOpt.get()));
    
            OptionalEntity<Float> negInfinityOpt = OptionalUtil.ofNullable(Float.NEGATIVE_INFINITY);
            assertTrue(negInfinityOpt.isPresent());
            assertTrue(Float.isInfinite(negInfinityOpt.get()));
    
            // Test with very large strings
            StringBuilder largeString = new StringBuilder();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      private static final double[] EMPTY = {};
      private static final double[] ARRAY1 = {1.0};
      private static final double[] ARRAY234 = {2.0, 3.0, 4.0};
    
      private static final double LEAST = Double.NEGATIVE_INFINITY;
      private static final double GREATEST = Double.POSITIVE_INFINITY;
    
      private static final double[] NUMBERS =
          new double[] {
            LEAST,
            -Double.MAX_VALUE,
            -1.0,
            -0.5,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

    /** Unit test for {@link AtomicDoubleArray}. */
    @NullUnmarked
    public class AtomicDoubleArrayTest extends JSR166TestCase {
    
      private static final double[] VALUES = {
        Double.NEGATIVE_INFINITY,
        -Double.MAX_VALUE,
        (double) Long.MIN_VALUE,
        (double) Integer.MIN_VALUE,
        -Math.PI,
        -1.0,
        -Double.MIN_VALUE,
        -0.0,
        +0.0,
        Double.MIN_VALUE,
        1.0,
        Math.PI,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/DoublesTest.java

      private static final double[] EMPTY = {};
      private static final double[] ARRAY1 = {1.0};
      private static final double[] ARRAY234 = {2.0, 3.0, 4.0};
    
      private static final double LEAST = Double.NEGATIVE_INFINITY;
      private static final double GREATEST = Double.POSITIVE_INFINITY;
    
      private static final double[] NUMBERS =
          new double[] {
            LEAST,
            -Double.MAX_VALUE,
            -1.0,
            -0.5,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      private static final float[] EMPTY = {};
      private static final float[] ARRAY1 = {1.0f};
      private static final float[] ARRAY234 = {2.0f, 3.0f, 4.0f};
    
      private static final float LEAST = Float.NEGATIVE_INFINITY;
      private static final float GREATEST = Float.POSITIVE_INFINITY;
    
      private static final float[] NUMBERS =
          new float[] {
            LEAST,
            -Float.MAX_VALUE,
            -1f,
            -0f,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.4K bytes
    - Viewed (0)
Back to top