[Solved] Converting string to float issue


If your string uses dot (.) as decimal separator, you should use this overload:

 float xFreq = Convert.ToSingle(param, CultureInfo.InvariantCulture);

Not really sure, but Additional information looks Slavic to me and the default decimal separator might be comma (,) instead of dot. Of course, this depends on the culture of the current thread which depends on Regional settings.

4

solved Converting string to float issue