char *psf = "183.0000000000000001"; char chBuff[128]; sprintf(chBuff, "%.2lf", atof(psf)); double fi = atof(chBuff);
char *psf = "183.0000000000000001"; char chBuff[128]; sprintf(chBuff, "%.2lf", atof(psf)); double fi = atof(chBuff);
转载于:https://www.cnblogs.com/haiyang21/p/10571740.html