Skip to content

Fix exact arbitrary-precision multipleOf validation - #8

Merged
xinz merged 3 commits into
mainfrom
fix-exact-multiple-of
Aug 7, 2026
Merged

Fix exact arbitrary-precision multipleOf validation#8
xinz merged 3 commits into
mainfrom
fix-exact-multiple-of

Conversation

@xinz

@xinz xinz commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Follows up #4

Replaces context-dependent Decimal.rem/2 validation with exact coefficient/exponent divisibility checks.

Fixes:

  • non-multiples incorrectly accepted at limited Decimal precision;
  • exact multiples incorrectly rejected;
  • Decimal.Error for large quotients.

The implementation avoids expanding large powers of ten and validates large values through the public schema compilation and validation path.

@xinz
xinz merged commit eb32aaf into main Aug 7, 2026
1 check failed
@xinz
xinz deleted the fix-exact-multiple-of branch August 7, 2026 07:52
@xinz

xinz commented Aug 7, 2026

Copy link
Copy Markdown
Owner Author

Thanks @AndrewDryga , the fix released in 0.9.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants