Skip to content

how to avoid rounding? #515

Open
Open
@zzzgit

Description

@zzzgit
var string = numeral(2.567).format('0,0.00');
// '2.57'

I don't want a rounding,I need to throw away the last digit,so the result should be 2.56.
so,how should I config it?

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