How to get correct double digit from string.
string first = "23.3";
string second = "23,3";
For now I used the sample parser for parse the number in double format:
double number = double.Parse(first);
double another = double.Parse(second);
So if I used en-US culture and for decimal separator used '.' then the result will be number = 23.3
and another = 233
.
So my question is do is possible to ignore the decimal separator and when is parse in both case to return result = 23.3.