double temp;
temp = (double)Convert.ToDouble(\"1234.5678\");
Hey Lads and Ladies, I can\'t for the life of me figure out why the above line isn\'t
In order to convert string to double without an exception:
An unhandled exception of type System.FormatException occurred in mscorlib.dll
Additional information: Input string was not in a correct format.
make it culture-insensitive by providing second parameter value CultureInfo.InvariantCulture, for example:
double.Parse("1234.5678", CultureInfo.InvariantCulture)