c++ convert string to double (not char*) code example Example: how to convert a string to a double c++ double new = std::stod(string);