I have the following piece of code:
string ss = findNodeValue( str, "Horizon"); cout << "ss is: " << ss << endl; double dd = atof( ss.c_str()); cout << "dd is: " << dd << endl;
When the value of 'ss' is printed, I find it prints 1.0, but when the value of 'dd' is printed, it prints 1 whereas it is supposed to print 1.0. Could any one help me figure out what the problem is.
Thanks in advance.