Hello. There is a form. There is a TextBox on the form, I enter 0.27 into it and get the error: invalid input string format. How to fix this error? It works with a comma, with a dot it does not want.
double X = double.Parse(previousText.ToString());
Most likely, your operating system is Russified, and therefore Decimical Separator (fractional separator from the whole in decimal fraction) is set to comma. In the English versions, the point is taken as a separator.
Source: https://ru.stackoverflow.com/questions/108327/
All Articles