Here is my simple code:
string t = "65.2";
var d = Convert.ToDouble(t);
and it gives me this error:
input string was not in a correct format on Convert.ToDouble
I have tried Convert.ToDobule(t, CultureInfo.InvariantCulture); and also Convert.ToDobule(t, new CultureInfo("en-US")); it works fine on my machine, but on another with the same culture it will give the same error.
where is the problem? and how to solve it?