We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the format string "$0,0.00" formatting a value in the range -0.005 <= value < 0 results in the string 0$.00 instead of $0.00:
"$0,0.00"
-0.005 <= value < 0
0$.00
$0.00
>> numeral(5).format("$0,0.00"); "$5.00" >> numeral(0.05).format("$0,0.00"); "$0.05" >> numeral(0.005).format("$0,0.00"); "$0.01" >> numeral(0.004).format("$0,0.00"); "$0.00" >> numeral(-0.000).format("$0,0.00"); "$0.00" >> numeral(-0.001).format("$0,0.00"); "0$.00" >> numeral(-0.005).format("$0,0.00"); "0$.00" >> numeral(-0.006).format("$0,0.00"); "-$0.01"
Numeral version 2.0.6. Tested with Firefox version 105.0.1 and Chrome version 105.0.5195.125.
The text was updated successfully, but these errors were encountered:
I'm also seeing the strange behaviour (also on numeral 2.0.6):
numeral
2.0.6
>> numeral(-0.005).format("$0,0.00"); "0$.00"
EDIT: FWIW it seems numbro (a more recently maintained fork of this repo) doesn't have this issue for me.
numbro
Sorry, something went wrong.
fixed bug in issue adamwdraper#777
e7e8508
Is there a plan to address this issue?
No branches or pull requests
When using the format string
"$0,0.00"
formatting a value in the range-0.005 <= value < 0
results in the string0$.00
instead of$0.00
:Numeral version 2.0.6. Tested with Firefox version 105.0.1 and Chrome version 105.0.5195.125.
The text was updated successfully, but these errors were encountered: