Sample
Isolate precision and rounding via Decimal.clone and treat precision as significant digits rather than decimal places
sha256:82916f62f33372aa0a1305381464d3550a96d6ee57d775a792c7bd88efeb60e2
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Isolate precision and rounding via Decimal.clone and treat precision as significant digits rather than decimal places HOW
- Packages
- decimal.js 10.6.0
- Environment
- node
- Created
- 2026-08-16T07:28:39Z
Contract
- assert setting precision configures significant digits rather than fractional decimal places
- assert toDecimalPlaces is required to round fractional places without truncating integers
- assert Decimal.clone creates an isolated constructor leaving global Decimal precision unaffected
- assert cloned instance operations compute using the caller constructor precision
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