如何得出保留某位小数,不进行四舍五入

很浅显我们只要减去多于这位的0.x5,即可

例如保留5位小数 , 

printf("%.5lf ",ans-0.0000005);

原文地址:https://www.cnblogs.com/shuaihui520/p/10398182.html