Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 281 for up (0.12 sec)

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

        // the representable doubles are 2^53 and 2^53 + 2.
        // 2^53+1 is halfway between, so HALF_UP will go up and HALF_DOWN will go down.
        new RoundToDoubleTester(BigDecimal.valueOf((1L << 53) + 1))
            .setExpectation(twoToThe53, DOWN, FLOOR, HALF_DOWN, HALF_EVEN)
            .setExpectation(Math.nextUp(twoToThe53), CEILING, UP, HALF_UP)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
    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. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

        // the representable doubles are 2^53 and 2^53 + 2.
        // 2^53+1 is halfway between, so HALF_UP will go up and HALF_DOWN will go down.
        new RoundToDoubleTester(BigInteger.valueOf((1L << 53) + 1))
            .setExpectation(twoToThe53, DOWN, FLOOR, HALF_DOWN, HALF_EVEN)
            .setExpectation(Math.nextUp(twoToThe53), CEILING, UP, HALF_UP)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      @J2ktIncompatible
    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)
  3. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

        // the representable doubles are 2^53 and 2^53 + 2.
        // 2^53+1 is halfway between, so HALF_UP will go up and HALF_DOWN will go down.
        new RoundToDoubleTester(BigInteger.valueOf((1L << 53) + 1))
            .setExpectation(twoToThe53, DOWN, FLOOR, HALF_DOWN, HALF_EVEN)
            .setExpectation(Math.nextUp(twoToThe53), CEILING, UP, HALF_UP)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/MathTesting.java

    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    import static java.math.RoundingMode.HALF_UP;
    import static java.math.RoundingMode.UP;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import com.google.common.base.Predicate;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        // all the way up again.
        int vacated = heap.fillHoleAt(index);
        // Try to see if toTrickle can be bubbled up min levels.
        int bubbledTo = heap.bubbleUpAlternatingLevels(vacated, toTrickle);
        if (bubbledTo == vacated) {
          // Could not bubble toTrickle up min levels, try moving
          // it from min level to max level (or max to min level) and bubble up
          // there.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/IntMath.java

            // fall through
          case DOWN:
          case FLOOR:
            return (Integer.SIZE - 1) - Integer.numberOfLeadingZeros(x);
    
          case UP:
          case CEILING:
            return Integer.SIZE - Integer.numberOfLeadingZeros(x - 1);
    
          case HALF_DOWN:
          case HALF_UP:
          case HALF_EVEN:
            // Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java

      }
    
      public void testCheckInRange_failure() {
        try {
          MathPreconditions.checkInRangeForRoundingInputs(false, 1.0, RoundingMode.UP);
          fail();
        } catch (ArithmeticException expected) {
          assertThat(expected).hasMessageThat().contains("1.0");
          assertThat(expected).hasMessageThat().contains("UP");
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/BigDecimalMath.java

       * mode}.
       *
       * <p>For the case of {@link RoundingMode#HALF_DOWN}, {@code HALF_UP}, and {@code HALF_EVEN},
       * infinite {@code double} values are considered infinitely far away. For example, 2^2000 is not
       * representable as a double, but {@code roundToDouble(BigDecimal.valueOf(2).pow(2000), HALF_UP)}
       * will return {@code Double.MAX_VALUE}, not {@code Double.POSITIVE_INFINITY}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 23 18:45:50 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

        throw up();
      }
    
      @Override
      public boolean removeAll(Collection<?> elementsToRemove) {
        throw up();
      }
    
      @Override
      public boolean retainAll(Collection<?> elementsToRetain) {
        throw up();
      }
    
      @Override
      public void clear() {
        throw up();
      }
    
      private static UnsupportedOperationException up() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/eventspy/EventSpy.java

    /**
     * A core extension to monitor Maven's execution. Typically, such an extension gets loaded into Maven by specifying the
     * property {@code maven.ext.class.path} on the command line. As soon as dependency injection is set up, Maven
     * looks up all implementers of this interface and calls their {@link #init(Context)} method. Note:
     * Implementors are strongly advised to inherit from {@link AbstractEventSpy} instead of directly implementing this
     * interface.
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Nov 22 13:26:01 GMT 2022
    - 2.6K bytes
    - Viewed (0)
Back to top