Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 770 for ceiling (0.24 sec)

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

            .setExpectation(-Math.pow(2, 53), DOWN, CEILING, HALF_DOWN, HALF_EVEN)
            .setExpectation(DoubleUtils.nextDown(-Math.pow(2, 53)), FLOOR, UP, HALF_UP)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      public void testRoundToDouble_negativeTwoToThe54MinusOne() {
        new RoundToDoubleTester(BigDecimal.valueOf((-1L << 54) - 1))
            .setExpectation(-Math.pow(2, 54), DOWN, CEILING, HALF_DOWN, HALF_UP, HALF_EVEN)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testCeilingHole() {
        resetWithHole();
        assertEquals(a, navigableSet.ceiling(a));
        assertEquals(c, navigableSet.ceiling(b));
        assertEquals(c, navigableSet.ceiling(c));
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testHigherHole() {
        resetWithHole();
        assertEquals(c, navigableSet.higher(a));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/ToDoubleRounder.java

              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;
            case UNNECESSARY:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.math.BigInteger.ONE;
    import static java.math.BigInteger.TEN;
    import static java.math.BigInteger.ZERO;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.DOWN;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.math.BigInteger.ONE;
    import static java.math.BigInteger.TEN;
    import static java.math.BigInteger.ZERO;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.DOWN;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

            .setExpectation(-Math.pow(2, 53), DOWN, CEILING, HALF_DOWN, HALF_EVEN)
            .setExpectation(DoubleUtils.nextDown(-Math.pow(2, 53)), FLOOR, UP, HALF_UP)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      public void testRoundToDouble_negativeTwoToThe54MinusOne() {
        new RoundToDoubleTester(BigDecimal.valueOf((-1L << 54) - 1))
            .setExpectation(-Math.pow(2, 54), DOWN, CEILING, HALF_DOWN, HALF_UP, HALF_EVEN)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingSortedSet.java

          @SuppressWarnings({"unchecked", "nullness"})
          SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this;
          Object ceiling = self.tailSet(object).first();
          return unsafeCompare(comparator(), ceiling, object) == 0;
        } catch (ClassCastException | NoSuchElementException | NullPointerException e) {
          return false;
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testCeilingHole() {
        resetWithHole();
        assertEquals(a, navigableSet.ceiling(a));
        assertEquals(c, navigableSet.ceiling(b));
        assertEquals(c, navigableSet.ceiling(c));
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testHigherHole() {
        resetWithHole();
        assertEquals(c, navigableSet.higher(a));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ForwardingSortedSet.java

          @SuppressWarnings({"unchecked", "nullness"})
          SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this;
          Object ceiling = self.tailSet(object).first();
          return unsafeCompare(comparator(), ceiling, object) == 0;
        } catch (ClassCastException | NoSuchElementException | NullPointerException e) {
          return false;
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ForwardingNavigableSet.java

      }
    
      @Override
      @CheckForNull
      public E ceiling(@ParametricNullness E e) {
        return delegate().ceiling(e);
      }
    
      /**
       * A sensible definition of {@link #ceiling} in terms of the {@code iterator} method of {@link
       * #tailSet(Object, boolean)}. If you override {@link #tailSet(Object, boolean)}, you may wish to
       * override {@link #ceiling} to forward to this implementation.
       */
      @CheckForNull
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 9K bytes
    - Viewed (0)
Back to top