I have this string "May 19, 2009 15:39:41.606809000" , i need to get the seconds into a double variable.
My code is like this:
double sec; string seconds = str.substr(19,10); istringstream(seconds) >> sec;
The thing is that seconds = 41.6068090 , but sec = 41.6068
Why doesn't the number of digits is lower?
Thanx in advance