I have float number in string. there is one problem. Number uses \".\" not \",\" as decimal point.
This code is not working:
MyNumber = float.Parse(\
Using string replace is very fragile, and will lead to suttle bugs. Specify the IFormatProvider instead. For instance:
IFormatProvider
MyNumber = float.Parse("123.5", CultureInfo.InvariantCulture);
Or you can specify the NumberFormatInfo using another overload of Parse.
NumberFormatInfo
Parse