globalize icon indicating copy to clipboard operation
globalize copied to clipboard

Number formats value as "-0" when rounding.

Open jrsearles opened this issue 7 years ago • 1 comments

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"

jrsearles avatar Aug 10 '17 16:08 jrsearles

Thanks for filing this issue. Anyone willing to work on a fix? :)

rxaviers avatar Aug 11 '17 12:08 rxaviers