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
As I was trying to get a french formatting (decimals separated by a comma rather than a point) on my input mask, I noticed that when setting maskMoney('mask', 12.34) for example, the inserted value is transformed to 1234.00 (1234,00 € in the input field)
Here is a Fiddle : http://jsfiddle.net/2kfzyb0b/42/
From what I understand this has been fixed for english formatting but not for other values of the decimal option
The text was updated successfully, but these errors were encountered:
i noticed that setting as string, but on correct format its working for me, so i was converting value into that and setting as normal val function, just remember to start input mask before
i've found this fix: let money = 15.99; let formated_money = parseFloat(money ).toLocaleString('pt-br',{style: 'currency', currency: 'BRL'}); $('#input_money').val( formated_money );
As I was trying to get a french formatting (decimals separated by a comma rather than a point) on my input mask, I noticed that when setting
maskMoney('mask', 12.34)
for example, the inserted value is transformed to 1234.00 (1234,00 € in the input field)Here is a Fiddle : http://jsfiddle.net/2kfzyb0b/42/
From what I understand this has been fixed for english formatting but not for other values of the decimal option
The text was updated successfully, but these errors were encountered: