Skip to content

[BUG] Incorrect value while precision greater than 7 #29

@billythekids

Description

@billythekids

I am getting an unexpected result both toFixed() and formatMoney() output

toFixed

toFixed(0, 10);

Output:

0.0000000100

Expected:

 0.0000000000

formatMoney

formatMoney(123.1234567890, { symbol: '',  decimal: '.', precision: 8 })

Output:

123.12345680

Expected:

 123.12345679

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions