I have 2 string lat long values that I want to convert to double. When I run stod function some sig figs have been cut off from the original string.
double latitude = stod(latstr);
double longitude = stod(longstr);
cout<<"String values:"<<latstr<<","<<longstr<<endl;
cout<<"Double values:"<<latitude<<","<<longitude<<endl;
output:
String values:21.13134532, -155.325334532
Double values:21.131, -155.325