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

OpenSCadOutput writes numbers in scad-code using current culture #327

Open
donid opened this issue Jan 23, 2017 · 0 comments
Open

OpenSCadOutput writes numbers in scad-code using current culture #327

donid opened this issue Jan 23, 2017 · 0 comments
Labels

Comments

@donid
Copy link

donid commented Jan 23, 2017

When converting double-values to text, ".ToString()" uses the settings of the current culture that is configured in the operating system (or the current thread). A call to ".ToString(CultureInfo.InvariantCulture)" must be used instead. If I run the current code on a system with e.g. German culture settings and specify a radius of 5/2 it will generate this code: r=2,5 which obviously doesn't work, because commas are used to separate parameters.

@jlewin jlewin added the bug label Jan 23, 2017
cristy-the-one added a commit to cristy-the-one/agg-sharp that referenced this issue Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants