Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 131 for doubles (0.05 sec)

  1. guava/src/com/google/common/primitives/Doubles.java

       */
      @InlineMe(replacement = "Double.compare(a, b)")
      public static int compare(double a, double b) {
        return Double.compare(a, b);
      }
    
      /**
       * Returns {@code true} if {@code value} represents a real number. This is equivalent to, but not
       * necessarily implemented as, {@code !(Double.isInfinite(value) || Double.isNaN(value))}.
       *
       * <p>Prefer {@link Double#isFinite(double)} instead.
       *
       * @since 10.0
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/DoublesTest.java

        testRotate(new double[] {}, -1, new double[] {});
        testRotate(new double[] {}, 0, new double[] {});
        testRotate(new double[] {}, 1, new double[] {});
    
        testRotate(new double[] {1}, -2, new double[] {1});
        testRotate(new double[] {1}, -1, new double[] {1});
        testRotate(new double[] {1}, 0, new double[] {1});
        testRotate(new double[] {1}, 1, new double[] {1});
        testRotate(new double[] {1}, 2, new double[] {1});
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        testRotate(new double[] {}, -1, new double[] {});
        testRotate(new double[] {}, 0, new double[] {});
        testRotate(new double[] {}, 1, new double[] {});
    
        testRotate(new double[] {1}, -2, new double[] {1});
        testRotate(new double[] {1}, -1, new double[] {1});
        testRotate(new double[] {1}, 0, new double[] {1});
        testRotate(new double[] {1}, 1, new double[] {1});
        testRotate(new double[] {1}, 2, new double[] {1});
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/MathTesting.java

      }
    
      static final ImmutableSet<Double> INTEGRAL_DOUBLE_CANDIDATES;
      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;
    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/primitives/DoubleArrayAsListTest.java

        @Override
        protected List<Double> create(Double[] elements) {
          return asList(elements);
        }
      }
    
      public static final class DoublesAsListHeadSubListGenerator extends TestDoubleListGenerator {
        @Override
        protected List<Double> create(Double[] elements) {
          Double[] suffix = {Double.MIN_VALUE, Double.MAX_VALUE};
          Double[] all = concat(elements, suffix);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

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

        new RoundToDoubleTester(maxDoubleAsBigInteger)
            .setExpectation(Double.MAX_VALUE, values())
            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_maxDoublePlusOne() {
        BigInteger maxDoubleAsBigInteger =
            DoubleMath.roundToBigInteger(Double.MAX_VALUE, UNNECESSARY).add(BigInteger.ONE);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/DoublesMethodsForWeb.java

     * the License.
     */
    
    package com.google.common.primitives;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * Holder for web specializations of methods of {@code Doubles}. Intended to be empty for regular
     * version.
     */
    @GwtCompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 860 bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

              Doubles.asList(
                  -Double.MIN_VALUE,
                  -Double.MIN_NORMAL,
                  -1,
                  -20,
                  Double.NaN,
                  Double.NEGATIVE_INFINITY,
                  -0.001));
    
      public void testFuzzyEqualsFinite() {
        for (double a : FINITE_DOUBLE_CANDIDATES) {
          for (double b : FINITE_DOUBLE_CANDIDATES) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/DoublesMethodsForWeb.java

     * the License.
     */
    
    package com.google.common.primitives;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * Holder for web specializations of methods of {@code Doubles}. Intended to be empty for regular
     * version.
     */
    @GwtCompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 860 bytes
    - Viewed (0)
Back to top