Skip to content

feat: throw exception when precision exceeds decimals#41

Merged
alberthaff merged 2 commits into
mainfrom
feature/throw-on-higher-precision
Mar 6, 2026
Merged

feat: throw exception when precision exceeds decimals#41
alberthaff merged 2 commits into
mainfrom
feature/throw-on-higher-precision

Conversation

@owenvoke

Copy link
Copy Markdown
Member

No description provided.

@owenvoke owenvoke force-pushed the feature/throw-on-higher-precision branch from 87db668 to bbcc365 Compare February 25, 2026 10:15
@owenvoke owenvoke marked this pull request as draft February 25, 2026 10:15
@owenvoke owenvoke force-pushed the feature/throw-on-higher-precision branch 3 times, most recently from 64dc75b to 83e31a5 Compare February 25, 2026 11:03
@owenvoke owenvoke force-pushed the feature/throw-on-higher-precision branch from 83e31a5 to f4fb265 Compare February 25, 2026 12:38
@owenvoke owenvoke force-pushed the feature/throw-on-higher-precision branch from 82c317a to c6ea4ce Compare March 6, 2026 10:34
@alberthaff alberthaff force-pushed the feature/throw-on-higher-precision branch from b85cc25 to 9e958f4 Compare March 6, 2026 16:28
Enforce rounding in MonetaryAmount and throw if initialising a MonetaryAmount with more than 2 decimal places.

Co-Authored-By: Owen Voke <development@voke.dev>
@alberthaff alberthaff force-pushed the feature/throw-on-higher-precision branch from 9e958f4 to 8d0057f Compare March 6, 2026 16:30
@alberthaff alberthaff marked this pull request as ready for review March 6, 2026 16:30
@alberthaff alberthaff merged commit bd2555b into main Mar 6, 2026
5 checks passed
@alberthaff alberthaff deleted the feature/throw-on-higher-precision branch March 6, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants