Skip to content

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

@sanekbel

Description

@sanekbel

Describe the bug
The currency converter displays too few decimal places for exchange rates with very small values. When converting Indonesian Rupiah (IDR) to Euro (EUR), the rate is rounded to 4 decimal places (for example 0.0001), which leads to inaccurate conversion results. In reality, the IDR → EUR rate is around 0.00005 EUR per 1 IDR, so this rounding significantly distorts the final amount.

To Reproduce
Steps to reproduce the behavior:
1. Open the currency converter.
2. Select IDR as the source currency.
3. Select EUR as the target currency.
4. Enter a value such as 491687 IDR.
5. Observe the displayed exchange rate and converted amount.

Expected behavior
The exchange rate should display more decimal places (at least 6) for currencies with very small rates, such as IDR → EUR. The converted amount should be calculated using a precise rate (for example ~0.00005 EUR per IDR), resulting in an accurate EUR value.

Screenshots

Image

App version
version 2 beta 9

Additional context
This issue mainly affects currencies with large nominal values and very small exchange rates (IDR, VND, etc). Increasing decimal precision dynamically based on the rate magnitude would prevent misleading conversions and improve trust in the calculator results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions