Skip to content
New issue

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

Price Formatting might be incorrect #93

Open
AmadeoMB opened this issue Feb 16, 2022 · 0 comments
Open

Price Formatting might be incorrect #93

AmadeoMB opened this issue Feb 16, 2022 · 0 comments

Comments

@AmadeoMB
Copy link

AmadeoMB commented Feb 16, 2022

Hi there,
I having a problem while formatting some number.

So I have this number: 1081.2
The expected result would be: 1.081,2
But instead I got this result: 10.812

JS
$(".money").priceFormat({ prefix: '', centsSeparator: ',', thousandsSeparator: '.', centsLimit: 0, limit: 9999999999999 });

At first I thought it's because of my format was wrong, but I've tried
$(".money").priceFormat({ prefix: '', centsSeparator: ',', thousandsSeparator: '.', centsLimit: 1, limit: 9999999999999 });
It returns as I expected, but if I type any number behind 2, it just straight up move my 2 in front of cent separator.
I expected them to just keep my 2 and add number behind comma.

I don't know, maybe I just got confused. Any help would be appreciated.

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

No branches or pull requests

1 participant