- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for CEILING (0.06 sec)
-
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)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 10.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java
import static com.google.common.math.MathBenchmarking.ARRAY_MASK; import static com.google.common.math.MathBenchmarking.ARRAY_SIZE; import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE; import static java.math.RoundingMode.CEILING; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import java.math.BigInteger; /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Aug 19 16:21:24 UTC 2024 - 3.4K bytes - Viewed (0) -
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));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.4K bytes - Viewed (0) -
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:
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 5.8K bytes - Viewed (0) -
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));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.4K bytes - Viewed (0) -
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:
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 5.8K bytes - Viewed (0) -
cmd/utils_test.go
cases := []struct { numerator, denominator, ceiling int64 }{ {0, 1, 0}, {-1, 2, 0}, {1, 2, 1}, {1, 1, 1}, {3, 2, 2}, {54, 11, 5}, {45, 11, 5}, {-4, 3, -1}, {4, -3, -1}, {-4, -3, 2}, {3, 0, 0}, } for i, testCase := range cases { ceiling := ceilFrac(testCase.numerator, testCase.denominator) if ceiling != testCase.ceiling {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Feb 23 21:28:14 UTC 2024 - 10.2K bytes - Viewed (0) -
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; } } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 5.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java
@CheckForNull public E lower(E element) { return forward.higher(element); } @Override @CheckForNull public E floor(E element) { return forward.ceiling(element); } @Override @CheckForNull public E ceiling(E element) { return forward.floor(element); } @Override @CheckForNull public E higher(E element) { return forward.lower(element); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 3.3K bytes - Viewed (0) -
guava/src/com/google/common/math/BigIntegerMath.java
* {@code BigInteger.valueOf(2).pow(log2(x, CEILING))}. * * @throws IllegalArgumentException if {@code x <= 0} * @since 20.0 */ public static BigInteger ceilingPowerOfTwo(BigInteger x) { return BigInteger.ZERO.setBit(log2(x, CEILING)); } /** * Returns the largest power of two less than or equal to {@code x}. This is equivalent to {@code
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 18.8K bytes - Viewed (0)