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

$(".number-format").number(true, 2, ',','.'); Show wrong decimal value #141

Open
saddamrajif opened this issue Oct 14, 2018 · 3 comments
Open

Comments

@saddamrajif
Copy link

I get the value from database with DOUBLE data type. ex : 100.55
If i have formatted with (.) as thousand sparator and (,) as decimal sparator. The textbox show wrong value (10.055,00)

@saddamrajif saddamrajif changed the title $(".number-format").number(true, 2, ',','.'); Show wrong value decimal $(".number-format").number(true, 2, ',','.'); Show wrong decimal value Oct 14, 2018
@fbiagetti
Copy link

I have the same problem

@dluccajosetw
Copy link

Same problem here. Any solutions?

@dluccajosetw
Copy link

dluccajosetw commented Dec 5, 2020

Here is the way that i fixed. First store the value in an variabla when you retrivie from the database, apply the number function to the input and then assign the value via .val()

tempValue = $(#input').val();
$('#input).number(true, 2, ',', '.');
$('#input').val(tempValue);

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

3 participants