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> |
||
|---|---|---|
| .. | ||
| immo-core | ||
| immo-web | ||