- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 785 for rounding (0.06 sec)
-
guava/src/com/google/common/math/ToDoubleRounder.java
import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary; import com.google.common.annotations.GwtIncompatible; import java.math.RoundingMode; /** * Helper type to implement rounding {@code X} to a representable {@code double} value according to * a {@link RoundingMode}. */ @GwtIncompatible @ElementTypesAreNonnullByDefault abstract class ToDoubleRounder<X extends Number & Comparable<X>> { /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 5.8K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java
import static com.google.common.math.MathBenchmarking.randomPositiveDouble; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; /** * Tests for the non-rounding methods of {@code DoubleMath}. * * @author Louis Wasserman */ public class DoubleMathBenchmark { private static final double[] positiveDoubles = new double[ARRAY_SIZE];
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/LongMathRoundingBenchmark.java
import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import java.math.RoundingMode; /** * Benchmarks for the rounding methods of {@code LongMath}. * * @author Louis Wasserman */ public class LongMathRoundingBenchmark { @Param({"DOWN", "UP", "FLOOR", "CEILING", "HALF_EVEN", "HALF_UP", "HALF_DOWN"}) RoundingMode mode;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java
import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import java.math.RoundingMode; /** * Benchmarks for the rounding methods of {@code IntMath}. * * @author Louis Wasserman */ public class IntMathRoundingBenchmark { private static final int[] positive = new int[ARRAY_SIZE];
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0) -
guava/src/com/google/common/math/LongMath.java
* is precisely representable as a {@code double}, its {@code double} value will be returned; * otherwise, the rounding will choose between the two nearest representable values with {@code * mode}. * * <p>For the case of {@link RoundingMode#HALF_EVEN}, this implementation uses the IEEE 754
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 09 16:39:37 UTC 2024 - 45.2K bytes - Viewed (0) -
android/guava/src/com/google/common/math/DoubleUtils.java
} else if (exponent > MAX_EXPONENT) { return x.signum() * POSITIVE_INFINITY; } /* * We need the top SIGNIFICAND_BITS + 1 bits, including the "implicit" one bit. To make rounding * easier, we pick out the top SIGNIFICAND_BITS + 2 bits, so we have one to help us round up or * down. twiceSignifFloor will contain the top SIGNIFICAND_BITS + 2 bits, and signifFloor the
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 5.1K bytes - Viewed (0) -
android/guava/src/com/google/common/math/ToDoubleRounder.java
import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary; import com.google.common.annotations.GwtIncompatible; import java.math.RoundingMode; /** * Helper type to implement rounding {@code X} to a representable {@code double} value according to * a {@link RoundingMode}. */ @GwtIncompatible @ElementTypesAreNonnullByDefault abstract class ToDoubleRounder<X extends Number & Comparable<X>> { /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 5.8K bytes - Viewed (0) -
common-protos/k8s.io/api/apps/v1beta1/generated.proto
// Absolute number is calculated from percentage by rounding up. // Defaults to 25%. // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when // the rolling update starts, such that the total number of old and new pods do not exceed // 130% of desired pods. Once old pods have been killed, // new ReplicaSet can be scaled up further, ensuring that total number of pods running
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 24K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java
import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; /** * Benchmarks for the non-rounding methods of {@code IntMath}. * * @author Louis Wasserman */ public class IntMathBenchmark { private static int[] exponent = new int[ARRAY_SIZE]; private static int[] factorial = new int[ARRAY_SIZE];
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/math/PairedStats.java
checkState(xSumOfSquaresOfDeltas > 0.0); checkState(ySumOfSquaresOfDeltas > 0.0); // The product of two positive numbers can be zero if the multiplication underflowed. We // force a positive value by effectively rounding up to MIN_VALUE. double productOfSumsOfSquaresOfDeltas = ensurePositive(xSumOfSquaresOfDeltas * ySumOfSquaresOfDeltas); return ensureInUnitRange(sumOfProductsOfDeltas / Math.sqrt(productOfSumsOfSquaresOfDeltas));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 17:02:53 UTC 2023 - 12.6K bytes - Viewed (0)