Beispiel
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
Fall
- Ziel
- Match JavaScript Math.max and Math.min IEEE 754 negative zero semantics in Decimal.max and Decimal.min HOW
- Pakete
- decimal.js 10.6.0
- Umgebung
- node
- Erstellt
- 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
Dateien
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9