globalizejs / globalizejs/globalize
Format percentage, minus sign when value is 0
Open
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
Assessment
This issue has not been assessed yet.