示例
Handle signed zero symmetry and tie-breaking in Decimal.max and Decimal.min across the 10.5.0 boundary
sha256:10b5a55bce9263bc2aa3e28a7399f1a6533be1831d28b7f046329fc106db2f75
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Handle signed zero symmetry and tie-breaking in Decimal.max and Decimal.min across the 10.5.0 boundary HOW
- 包
- decimal.js 10.6.0
- 环境
- node
- 创建时间
- 2026-08-16T07:28:38Z
契约
- assert Decimal.max(-0, 0) returns positive zero with positive sign and positive reciprocal infinity
- assert Decimal.max(0, -0) returns positive zero matching Math.max behavior
- assert Decimal.min(0, -0) returns negative zero with negative sign and negative reciprocal infinity
- assert Decimal.min(-0, 0) returns negative zero matching Math.min behavior
- assert Decimal.max and Decimal.min are commutative and independent of argument order for signed zeros
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9