codesamplex

Sample

Parse decimal strings with 34 significant digits and leading zeros without exceeding default max_digits

sha256:415afd76d53201a314bf2d69d1ff4b9d5be593003f22a660bddfbb0a3d99ec4a

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Parse decimal strings with 34 significant digits and leading zeros without exceeding default max_digits HOW
Packages
decimal 3.1.1
Environment
elixir
Created
2026-08-16T13:26:41Z

Commonly assumed

Decimal.new/1 and Decimal.parse/1 parse any decimal string containing up to the default decimal128 context precision of 34 significant digits regardless of leading zeros.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts