Sample
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
Case
- Goal
- Handle signed zero symmetry and tie-breaking in Decimal.max and Decimal.min across the 10.5.0 boundary HOW
- Packages
- decimal.js 10.6.0
- Environment
- node
- Created
- 2026-08-16T07:28:38Z
Contract
- 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
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9