Sample
Match JavaScript Math.max and Math.min IEEE 754 negative zero semantics in Decimal.max and Decimal.min
sha256:9ba0ee857d069e2978c675d4b1f7289117111b50b6dc4a204b2d6a9ccfc5e0ce
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Match JavaScript Math.max and Math.min IEEE 754 negative zero semantics in Decimal.max and Decimal.min HOW
- Packages
- decimal.js 10.6.0
- Environment
- node
- Created
- 2026-08-16T07:28:41Z
Contract
- assert Decimal.max(-0, 0) returns positive zero (+0) rather than retaining -0
- assert Decimal.max with Decimal instances returns +0
- assert Decimal.min(0, -0) returns negative zero (-0) rather than retaining +0
- assert Decimal.min with Decimal instances returns -0
- assert reciprocal division matches JavaScript Math.max and Math.min signed zero behavior
- assert multi-argument max and min preserve correct signed zero
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