Double.Parse( doubleString ) if you are sure current thread Culture is the
same as doubleString number represented in (decimal point char is important)
or
Double.Parse( doubleString, specificCulture ) if you have to convert from a
specific culture (see System.Globalisation)
or
Convert.ToDouble( doubleString ) to perform neutral culture conversion (so
decimal point should be "." )
so if you writes doubleString as
double d = 1.21
string doubleString = d.ToString()
or use WriteLine etc to write doubles you should use same culture to parse
values that was used when doubles were written to string.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.