Check for error from strtof()/strtod().