You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possibele to have negative numbers formatted ? #436
Hallo sorry for my (maybe) stubid question.
I use masks like '000.000.000.000.000' or '000.000.000.000.000,00', these work justs fine but I don't know how to add the possibility to have an optional minus infront of the numbers. Is that possible?
Thank you
jQuery Mask has only a few aspects of currency. If you need things like fixed default value or negative values or + sign our - in front of your numbers I recommend you to use a plugin that focus on solving those issues.
I do not intend to implement all possibilities on currency problems on that plugin as the main intent of jQuery Mask is to remain generic.
Activity
joshharington commentedon Jul 29, 2016
Have you managed to sort this out ?
RafaelRViana commentedon Sep 23, 2016
+1
How to deal with negative money using money input?
halliballi123 commentedon Sep 23, 2016
I have negative money input for example, when I need balance sums of companies. These are not always positive
igorescobar commentedon Oct 12, 2016
jQuery Mask has only a few aspects of currency. If you need things like fixed default value or negative values or + sign our - in front of your numbers I recommend you to use a plugin that focus on solving those issues.
I do not intend to implement all possibilities on currency problems on that plugin as the main intent of jQuery Mask is to remain generic.
Use this one for example: https://github.com/plentz/jquery-maskmoney
igorescobar commentedon Oct 12, 2016
Related #295
igorescobar commentedon Oct 20, 2017
If you get this far and still want to try something else you may like this thread:
#619