Skip to content

Fix of the currency format on negative numbers rouned to 0 - #775

Open
Ondrashx wants to merge 1 commit into
adamwdraper:masterfrom
Ondrashx:patch-1
Open

Ondrashx wants to merge 1 commit into
adamwdraper:masterfrom
Ondrashx:patch-1

Conversation

@Ondrashx

Copy link
Copy Markdown

console.log(numeral(-0.008).format('$ 0,0')); -> "0$ "

the code before the change did count with the fact that numberToFormat does not return negative zero (-0)

console.log(numeral(-0.008).format('$ 0,0')); -> "0$ "

the code before the change did count with the fact that numberToFormat does not return negative zero (-0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant