12345678910111213141516
#include <iostream> #include<fstream> #include<math.h> #include<string> using namespace std; int main() { string s = "0.810911540966214"; double d = stod(s); // not the same of s // 0.81091154096621398 return 0; }