I tracked down a bug in my application that occurred for people in countries where the default decimal symbol was a comma instead of a period. Is there any way in C# to set the
I you still need to do that you can change the CurrentCulture on the thread like so:
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-Us");
Chooe a Culture that has the decimal properties you need.
var numpre = 1.1.ToString();
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-Us");
var numpost = 1.1.ToString();
numpre.Dump();
numpost.Dump();
Output:
1,1
1.1