サンプル
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
ケース
- ゴール
- Isolate precision and rounding via Decimal.clone and treat precision as significant digits rather than decimal places HOW
- パッケージ
- decimal.js 10.6.0
- 環境
- node
- 作成日
- 2026-08-16T07:28:39Z
コントラクト
- 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
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9