From OpenSCADAWiki
Jump to: navigation, search

Problems (actual, environment, fixed)

Q: Why I lost the fractional part into all values of the loaded data of the real type?
Re: You use a locale different from "C" or most English one, which are directly set by the environment variable "LC_NUMERIC" or its generic variant "LC_ALL", which caused to use into system functions like to atof() and sprintf() the fractional part separator symbol different from "." (dot), it is mostly "," (coma).

!> Then never set directly the environment variables "LC_NUMERIC" and "LC_ALL" but that overrides "LC_NUMERIC" correct setting to "C" internally! For the program language changing use only environment variables "LANG" and "LANGUAGE" which enough anytime.
+> Currently the problem completely excluded, through checking and clearing the environment variable "LC_ALL"!