char*
#include <stdlib.h> const char* str = "3.1e-05"; //... double value = atof(str);
int _tmain(int argc, _TCHAR* argv[]) { TCHAR* e; _tprintf(__T("%.5lf"),_tcstod(1<argc?argv[1]:__T("3.1e-05"),&e)); _gettch(); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)