Skip to content

Numbers >10 digits are formatted wrongly #63

@MuratOzsoyler

Description

@MuratOzsoyler

Describe the bug
If number is greater than 10 digits formatNumber always returns 02147483647.2147483647 or alike.

To Reproduce

> formatNumber "000000000000.0" 1234567899.0 
(Right "001234567899.0")

but

> formatNumber "000000000000.0" 12345678901.0
(Right "02147483647.2147483647")

Expected behavior
Numbers up to 12345678901234564.0 can exactly be shown. So formatNumber should format them. If for whatever reason it could not format reasonably then Left should be returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueFirst-time contributors who are looking to help should work on these issues.type: bugSomething that should function correctly isn't.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions