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

Comma instead of a period #118

Open
Dilise opened this issue Jun 6, 2019 · 0 comments
Open

Comma instead of a period #118

Dilise opened this issue Jun 6, 2019 · 0 comments

Comments

@Dilise
Copy link

Dilise commented Jun 6, 2019

Добрый день!
Прошу добавить обработку запятой в числах в функцию computeTotal, так как в русском языке используется запятая вместо точки. Спасибо.
(Google translate):
"I ask you to add processing comma in numbers to the computeTotal function, since in Russian a comma is used instead of a period. Thank."

$('#board .list-total .'+attr).each(function(){ score+=parseFloat(this.textContent.replace(/,/, '.'))||0; });

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