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

Display Price with zeros after coma #90

Open
murilolivorato opened this issue Oct 28, 2019 · 3 comments
Open

Display Price with zeros after coma #90

murilolivorato opened this issue Oct 28, 2019 · 3 comments

Comments

@murilolivorato
Copy link

Hello , nice class .
I have a question .

I type like this -

R$ 50,00

AND the data will be like that -

50

I want display like this in data -

5000

How can I do it ?

@murilolivorato
Copy link
Author

???? no awnswer ?

@murilolivorato
Copy link
Author

no one can help me ?

@hawkapparel
Copy link

For "fix" this problem you can use this:
let numberValue = 5200;
(parseFloat(numberValue)).toFixed(2);

will show: 5,200.00

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

2 participants