Skip to content

Mask with # as decimal is not working as expected #18

@Veoth

Description

@Veoth

Hi @Mottie ,
First thank you for the library which is really useful.

Among all the examples you supplied in the README, there is this one:

format( "#,##0.####", 1234567.890 ); // output: "1,234,567.89"

The actual output is "1,234,567.8900"

I believe this is a bug since the # should fill the decimal only if necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions