globalize
globalize copied to clipboard
Number formats value as "-0" when rounding.
If the number is negative and rounds down to 0, the formatting is keeping the negative symbol.
Globalize.formatNumber(-0.25, { minimumFractionDigits: 0, maximumFractionDigits: 0 })
// yields "-0"
// expect "0"
Thanks for filing this issue. Anyone willing to work on a fix? :)