-
Notifications
You must be signed in to change notification settings - Fork 7
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
Parsing ,. #1
Comments
Hmmm... can you describe why you need this? GCode doesn't use international conventions, so parsing a GCode segment using a command like that isn't actually going to produce valid output. Marlin uses the traditional GCode format, which only supports "." as a decimal separator, for example, and using a specific country/region will break that. Perhaps, however, the code can be converted to an InvariantCulture instead if you're seeing a problem. Feel free to edit the file and make a pull request. |
Ah... you seem to have edited your comment. Good... that will work. But, still, you can easily edit it and make the pull request. |
Why do I need this? I live in EU/Poland and my C# interpreter crashes because of this :) (even with ready .exe you provided). |
Hey, Could you add to double.Parse commands CultureInfo?:
double.Parse(temp[segment].Substring(1));
to:
double.Parse(temp[segment].Substring(1), CultureInfo.InvariantCulture);
and also .ToString();?
The text was updated successfully, but these errors were encountered: