-
Notifications
You must be signed in to change notification settings - Fork 35
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
problem with ToString() in russian #2
Comments
thanks. Someone else had this same issue in a different country. can you give some examples of the usage? are the , characters in the data, or in function parameters or results, or where? |
sorry, but i am don't use anymore GNUplot. but i think it was something like that: |
The problem is when you have some decimal numbers like It's better to use CultureInfo.InvariantCulture in thie case, e.g.: |
but what faster, ToString().Replace ( ',', '.') or ToString(CultureInfo.InvariantCulture) |
ToString() is equivalent to ToString(CultureInfo.CurrentCulture) |
In the Russian localization of the character ',' is a decimal separator, and when you call ToString.() method, the line turns like "0,01", and is not correct.
The solution is simple, add .Replace ( ',', '.').
The text was updated successfully, but these errors were encountered: