Ejemplo
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
Caso
- Objetivo
- Handle signed zero symmetry and tie-breaking in Decimal.max and Decimal.min across the 10.5.0 boundary HOW
- Paquetes
- decimal.js 10.6.0
- Entorno
- node
- Creado
- 2026-08-16T07:28:38Z
Contrato
- 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
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9