Skip to content

Add rounding options #27

@lava-hammer

Description

@lava-hammer

It's a piece of artwork with simplicity, I love this project.
In some cases, it's better to give the option to user of rounding options:
like:
t.is(format("#,##0.00", "123456.789"), "123,456.79");
t.is(format("#,##0.00", "123456.789", { rounding: 'floor'} ), "123,456.78");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions