Skip to content

$0.995 formats to $1.00 but how Not to average #676

@vaklinzi

Description

@vaklinzi

I would like to keep the amount formatted to the second digit, $0.995 to be $0.99 but the numbro rounds it to $1.00.
What I use:
numbro(0.995).formatCurrency({ mantissa: 2 });

Thank you in advanced!

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