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

Counter does not handle decimals correctly #14

Open
hoermannklaus opened this issue Feb 7, 2022 · 1 comment
Open

Counter does not handle decimals correctly #14

hoermannklaus opened this issue Feb 7, 2022 · 1 comment

Comments

@hoermannklaus
Copy link

I setup the Counter-Up2 and came across a problem, when using decimal values.

Using the Codepen example https://codepen.io/bfintal/pen/zYzOGpZ and replacing the value 1,123,456.78 in the HTML with a decimal value "1.234" the counter starts counting up from 1 to 1000, as it interprets the number not as "1.234" but as "1234" (one thousand two hundred thirty four). The same when I exchange the dot with a semicolon.

Am I missing out on something? It said it can handle decimals.

Thanks

@hoermannklaus
Copy link
Author

When I replace the counterUp version in the Codepen to 1.0.1 the decimals work again. Maybe there is a bug somewhere in Version 2.

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