Skip to content

[Feature Request] Option to not show decimal places if they are zero #5

@iori57

Description

@iori57

Hi, first of all the library is works great and very easy to setup and use! Just trying it out for the first time today, one thing that I found missing which is to not showing decimal places if they are zero.

For example:
When the amount is $34.00 or 34,00 -> output of the formatter would be $34 instead
On the other hand if it is $34.20 or $34.88 -> show as it is

As KMP lacks a good DecimalFormatter which auto handles different locales, if this library handles that would be of great convenience :)

Thanks!
Bruce

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