i have an Person object with an age property (int)
i am parsing a file and this value is coming in this format "6.00000000000000"
what is the best way to convert this string into an int in C#
Convert.ToInt32() or Int.Parse() gives me an exception:
Input string was not in a correct format.