Skip to content

Fix 562 dynamic currency rate precision#565

Merged
krokosik merged 5 commits into
mainfrom
fix-562-dynamic-currency-rate-precision
Feb 9, 2026
Merged

Fix 562 dynamic currency rate precision#565
krokosik merged 5 commits into
mainfrom
fix-562-dynamic-currency-rate-precision

Conversation

@krokosik
Copy link
Copy Markdown
Collaborator

@krokosik krokosik commented Feb 9, 2026

Description

Currencies with high nominal values should now convert properly, as we keep track of the rate precision returned by the provider. Unfortunately, in the case of frankfurter and OXR, it is problematic, because they truncate zeros. NBP provides fixed precision, but updates such currencies via table B (once per week). However, frankfurter does not probably even offer such currencies, so it's either lossy OXR (you can try switching days) or NBP.

Closes #562

@krokosik krokosik merged commit 4a32de7 into main Feb 9, 2026
1 check passed
@krokosik krokosik deleted the fix-562-dynamic-currency-rate-precision branch February 9, 2026 22:23
krokosik added a commit that referenced this pull request Feb 10, 2026
krokosik added a commit that referenced this pull request Feb 10, 2026
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.

[Bug] Currency Converter Lacks Decimal Precision for Small Exchange Rates (IDR → EUR)

1 participant