#include <iostream> #include <sstream> #include <cstdlib> #include <string> using namespace std; int main() { double x =0; string number= "12345"; x= atof(number.c_str()); cout<<"Double number is: "<<x; return 0; } /* OUTPUT: Double number is: 12345 */