```C++ sprintf(coordstr, " %.15g", lat); if (!strchr(coordstr, '.')) strcat(coordstr, ".0"); ``` -> ```C++ int e = sprintf(coordstr, " %.15g", lat); if (!strchr(coordstr, '.')) strcpy(coordstr+e, ".0"); ``` Better yet? ```C++ int e = sprintf(coordstr, " %.15g", lat); if (lat==int(lat)) strcpy(coordstr+e, ".0"); ``` * [x] Waypoint::nmplogs * [x] Waypoint::str() * [x] Route::csv_line() * TravelerList::userlog can wait, to avoid merge conflicts. Those cases will disappear when the ClinchedDBValues class is removed.
Activity
[-]python style floats[/-][+]python style floats: strcat -> strcpy[/+]yakra commentedon Oct 25, 2021
Tasks:
'begin nmplogs|end nmplogs''\.\.\.routes|\.\.\.connectedRoutes'UserLog