Skip to content

Japanese Yen showing decimal places when the locale is not set to Japan #10

@brucemok8

Description

@brucemok8

Just noticed on certain locales, Japanese Yen is showing decimal places even though the currency's fractionDigits is 0.

val japaneseFormatter = CurrencyFormatter(KurrencyLocale.JAPAN)
japaneseFormatter.formatCurrencyStyleResult("1234", "JPY") // "¥1,235"

val usFormatter = CurrencyFormatter(KurrencyLocale.US)
usFormatter.formatCurrencyStyleResult("1234", "JPY") // "¥1,235.00" <-- the bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions