C# Converting a string containing a floating point to an integer
Asked 2010-08-03T09:54:32.880
18
What is the best way to take a string which can be empty or contain "1.2" for example, and convert it to an integer? int.TryParse fails, of course, and I don't want to use float.TryParse and then convert to int.