You can use InvariantCulture
for parsing which uses dot
as a decimal separator
if(double.Parse(wind_kph, CultureInfo.InvariantCulture) > 60.00)
You can find more detailed information from the documentation of double.Parse(string)
method, the relevant part is:
The s parameter is interpreted using the formatting information in a NumberFormatInfo
object that is initialized for the current thread culture. For more information, see CurrentInfo
. To parse a string using the formatting information of some other culture, call the Double.Parse(String, IFormatProvider)
or Double.Parse(String, NumberStyles, IFormatProvider)
method.