No description
Find a file
Marcel Enguehard 3ab4a4064a Add Euros::from_euros_as_decimal with a typed error
Converting a Decimal amount into integer cents can fail two ways: the value
carries sub-cent precision, or it does not fit in an i64 once scaled. Both are
reported through EurosError rather than silently truncating, since a money type
that rounds without being asked is the wrong kind of convenient.

The scale check demands exactly 2 rather than at most 2, so callers have to be
explicit about the precision they are handing over.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-23 15:17:47 +02:00
.claude/commands Add /teach-me command encoding the feature workflow 2026-08-03 19:27:21 +02:00
crates Add Euros::from_euros_as_decimal with a typed error 2026-08-23 15:17:47 +02:00
scripts Add reference amortisation generator for known-answer tests 2026-08-18 18:07:23 +02:00
.gitignore Add reference amortisation generator for known-answer tests 2026-08-18 18:07:23 +02:00
Cargo.lock Add LoanOffer with validating constructor 2026-07-30 15:09:49 +02:00
Cargo.toml Set up cargo workspace backbone 2026-07-29 20:30:55 +02:00
CLAUDE.md Set up cargo workspace backbone 2026-07-29 20:30:55 +02:00
rust-toolchain.toml Set up cargo workspace backbone 2026-07-29 20:30:55 +02:00