- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for isInfinity (1.12 sec)
-
tests/test_jsonable_encoder.py
data = {"value": Decimal("NaN")} assert isnan(jsonable_encoder(data)["value"]) def test_decimal_encoder_infinity(): data = {"value": Decimal("Infinity")} assert isinf(jsonable_encoder(data)["value"]) data = {"value": Decimal("-Infinity")} assert isinf(jsonable_encoder(data)["value"]) def test_encode_deque_encodes_child_models(): class Model(BaseModel): test: strRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 9.2K bytes - Viewed (0) -
guava/src/com/google/common/math/ToDoubleRounder.java
final double roundToDouble(X x, RoundingMode mode) { checkNotNull(x, "x"); checkNotNull(mode, "mode"); double roundArbitrarily = roundToDoubleArbitrarily(x); if (Double.isInfinite(roundArbitrarily)) { switch (mode) { case DOWN: case HALF_EVEN: case HALF_DOWN: case HALF_UP: return Double.MAX_VALUE * sign(x); case FLOOR:
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 5.8K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/FileSizeFormat.java
} public void formatRate(MessageBuilder builder, double rate) { // Handle invalid rates gracefully (including negative values) if (Double.isNaN(rate) || Double.isInfinite(rate) || rate < 0) { builder.append("? B/s"); return; } ScaleUnit unit = ScaleUnit.getScaleUnit(Math.round(rate)); double scaledRate = rate / unit.bytes();Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Apr 16 10:09:21 UTC 2025 - 7K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
return readShort() & 0xffff; } /** * Reads a Windows FILETIME value and converts it to a Date. * @return the Date object, or null if the time represents infinity * @throws IOException if an I/O error occurs */ public Date readFiletime() throws IOException { Date date = null; final long last = readUnsignedInt();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.9K bytes - Viewed (0)