- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 31 for nan (0.02 sec)
-
fastapi/encoders.py
Our Id type is a prime example of this. >>> decimal_encoder(Decimal("1.0")) 1.0 >>> decimal_encoder(Decimal("1")) 1 >>> decimal_encoder(Decimal("NaN")) nan """ exponent = dec_value.as_tuple().exponent if isinstance(exponent, int) and exponent >= 0: return int(dec_value) else: return float(dec_value)Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 10.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/QuantilesTest.java
.comparingValuesUsing(QUANTILE_CORRESPONDENCE) .containsExactly( 0, NaN, 1, NaN, 2, NaN, 8, NaN, 9, NaN, 10, NaN); } public void testScale_index_compute_doubleCollection_nan() { assertThat(Quantiles.scale(10).index(5).compute(ONE_TO_FIVE_AND_NAN)).isNaN(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 29.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/QuantilesTest.java
.comparingValuesUsing(QUANTILE_CORRESPONDENCE) .containsExactly( 0, NaN, 1, NaN, 2, NaN, 8, NaN, 9, NaN, 10, NaN); } public void testScale_index_compute_doubleCollection_nan() { assertThat(Quantiles.scale(10).index(5).compute(ONE_TO_FIVE_AND_NAN)).isNaN(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 29.8K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Doubles.java
* written to or read from it. For example, whether {@code list.get(0) == list.get(0)} is true for * the returned list is unspecified. * * <p>The returned list may have unexpected behavior if it contains {@code NaN}, or if {@code NaN} * is used as a parameter to any of its methods. * * <p>The returned list is serializable. * * <p><b>Note:</b> when possible, you should represent your data as an {@linkRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 22 18:14:49 UTC 2025 - 27.6K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Floats.java
* written to or read from it. For example, whether {@code list.get(0) == list.get(0)} is true for * the returned list is unspecified. * * <p>The returned list may have unexpected behavior if it contains {@code NaN}, or if {@code NaN} * is used as a parameter to any of its methods. * * <p>The returned list is serializable. * * @param backingArray the array to back the list * @return a list view of the array */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 22 18:14:49 UTC 2025 - 25.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java
} public void testCheckNonNegative_nanFloat() { assertThrows( IllegalArgumentException.class, () -> MathPreconditions.checkNonNegative("float", Float.NaN)); } public void testCheckNonNegative_zeroDouble() { MathPreconditions.checkNonNegative("double", 0d); } public void testCheckNonNegative_maxDouble() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/StatsTesting.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 23.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
ImmutableDoubleArray.of(-0.0, 0.0, Double.MAX_VALUE, Double.POSITIVE_INFINITY, Double.NaN); assertThat(iia.indexOf(-0.0)).isEqualTo(0); assertThat(iia.indexOf(0.0)).isEqualTo(1); assertThat(iia.indexOf(Double.MAX_VALUE)).isEqualTo(2); assertThat(iia.indexOf(Double.POSITIVE_INFINITY)).isEqualTo(3); assertThat(iia.indexOf(Double.NaN)).isEqualTo(4); } public void testLastIndexOf() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.5K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/FileSizeFormatTest.java
MessageBuilder builder = new DefaultMessageBuilder(); format.formatRate(builder, -1.0); assertEquals("? B/s", builder.build()); // Test NaN builder = new DefaultMessageBuilder(); format.formatRate(builder, Double.NaN); assertEquals("? B/s", builder.build()); // Test Infinity builder = new DefaultMessageBuilder();
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 14.9K bytes - Viewed (0) -
android/guava/src/com/google/common/math/MathPreconditions.java
} return x; } @CanIgnoreReturnValue static double checkNonNegative(String role, double x) { if (!(x >= 0)) { // not x < 0, to work with NaN. throw new IllegalArgumentException(role + " (" + x + ") must be >= 0"); } return x; } static void checkRoundingUnnecessary(boolean condition) { if (!condition) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3.2K bytes - Viewed (0)