You need
atof(input.c_str());
That would be the "suitable conversion function" in question.
std::string::c_str
Documentation:
const char* c_str() const;
Get C string equivalent
Returns a pointer to an array that contains a null-terminated sequence of characters (i.e., a C-string) representing the current value of the string object.