Sample
Measure currency and percentage formatting and parsing behavior in NumberFormat
sha256:e764241dfd5301eb8adaad11279bade039b87943193af7223d8b3919f6563f7c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- dart
- Operating system
- linux
- Architecture
- x64
- Runtime
- dart
- Language
- dart
- Package manager
- pub
Verification-run environments
- Execution context
- dart 3
- Operating system
- linux debian · glibc
- Architecture
- x64
- Runtime
- dart 3
- Language
- dart
- Package manager
- pub
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · pub@1 · 2026-08-17
Case
- Goal
- Measure currency and percentage formatting and parsing behavior in NumberFormat HOW
- Packages
-
intl 0.20.2
- Environment
- dart
- Created
- 2026-08-17T03:53:47Z
Contract
- NumberFormat.currency formats with the three-letter ISO code unless simpleCurrency or an explicit symbol is used.
- NumberFormat.simpleCurrency parsing accepts both a symbol-prefixed value and the same localized number without its currency symbol.
- NumberFormat.simpleCurrency for JPY uses zero decimal places while currency with only an explicit yen symbol inherits the locale's decimal digits.
- NumberFormat.percentPattern multiplies by 100 and its locale pattern displays no fraction digits by default, while decimalPercentPattern can preserve them.
- NumberFormat.compactCurrency uses an ISO code while compactSimpleCurrency uses the currency symbol.
Files
- NOTES.md
- csx.json
- lib/currency.dart
- pubspec.lock
- pubspec.yaml
- test/contract.dart
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- dart 3 · linux debian/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · pub@1 · 2026-08-17 · ed25519:d91480838ac982c9