Skip to content

Minus signs in wrong place with leading zeros #45

@dbaynard

Description

@dbaynard

Using v3.0.1

> format (Formatter { abbreviations: false, after: 0, before: 3, comma: false, sign: true }) (1.0)
"+001"
> format (Formatter { abbreviations: false, after: 0, before: 3, comma: false, sign: true }) (-1.0)
"00-1"

Using 3 leading digits is most illustrative as the effect can be seen whenever there are leading zeros.

With sign false, the result is the same for the -ve number (the positive number correctly has no sign).

Metadata

Metadata

Assignees

No one assigned

    Labels

    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