小数点保留n位有效数字时间:2023-03-09 07:09:59 char *psf = "183.0000000000000001"; char chBuff[]; sprintf(chBuff, "%.2lf", atof(psf)); double fi = atof(chBuff);