globalizejs / globalizejs/globalize

Format percentage, minus sign when value is 0

Open
#777 3 comments 0 reactions 0 assignees View on GitHub
bug number module quick change
Dominant language
JavaScript
Stars
4.8k
Forks
585
PR merge metrics
No merged PRs in 30d

Description

Hi,
I'm using globalizejs 1.0.1.
When I try to format a percentage (minimumFractionDigits: 2, maximumFractionDigits: 2) everything works fine except one scenario.
Given a value equal to -0.003, I get a percentage of "-0.00%".
Is there any way to remove the minus sign when, because of rounding or truncation, the final value is 0%?
thank you

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.