convert the input to a float, or NAN if the input is not a float
double toDouble(String str) => toFloat(str);