I want to convert a value from string to float in c#. the value definitely has precision(I mean .00 or .67 in this example. I don't know the word in English for sure) like "120.00" , "233.67"
and this is what I do for doing that
float existingValue = float.Parse(param[1].ToString());
param[1]
contains the string value
but gives me error :
'Input string was not in a correct format.'
If I change the value from "120.00" to "120" it works fine
what is the problem for that?