Is there a setting to change the default decimal separator (',' to '.')
for float/double/decimal
in VC 2017
?
Right now i have to copy-paste this into every project:
System.Globalization.CultureInfo customCulture = (System.Globalization.CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone();
customCulture.NumberFormat.NumberDecimalSeparator = ".";
System.Threading.Thread.CurrentThread.CurrentCulture = customCulture;
EDIT: Okay, figured this one out thanks to Tim. This setting is OS based, therefore you have to change it in your OS settings.
For Windows you have to type "Region" into the Search box. Go to Additional Settings and change the "Decimal symbol" option.