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

Evaluating decimal constants #1

Open
ErosOlmi opened this issue Oct 5, 2021 · 3 comments
Open

Evaluating decimal constants #1

ErosOlmi opened this issue Oct 5, 2021 · 3 comments

Comments

@ErosOlmi
Copy link

ErosOlmi commented Oct 5, 2021

Hi,

I tried to evaluate "pi/2" and result is ok: 1.570796
Then I tried to evaluate "pi/2+1.570796" but result is "1570797,570796"
It seems decimal separator (.) is not interpreted or I'm missing something.

My system is in Italian and if I try to use comma as decimal separator I get error.

Thanks a lot

@matheval
Copy link
Owner

matheval commented Oct 6, 2021

Dear @ErosOlmi ,
Thank you for using my library, I will check this error soon.

@Gedof
Copy link

Gedof commented Mar 25, 2022

Hello, I am having the same problem. My system is in brazilian portuguese if that makes any difference.

Edit: Setting "CultureInfo.CurrentCulture = CultureInfo.InvariantCulture" before the evaluation "fixed it".

@matheval
Copy link
Owner

Hello, I am having the same problem. My system is in brazilian portuguese if that makes any difference.

Edit: Setting "CultureInfo.CurrentCulture = CultureInfo.InvariantCulture" before the evaluation "fixed it".

@Gedof Thank you somuch,

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