qinzheng_985 @ 2024-10-15 17:26:30
原题:......保留两位小数。
所以这是要四舍五入进行还是直接进行上取整或是下取整???
大佬求帮助!(^-^)
by Hagasei @ 2024-10-15 17:29:39
一般这么说都是四舍五入。
by zhengshiy @ 2024-10-15 18:15:34
我觉得在编程里应该只能整取啊
by SunriseLJY @ 2024-10-20 21:17:05
#include<cstdio>
...
printf("%.2lf", ans);
by zhuzhu0307 @ 2024-10-26 13:52:50
printf("%.2lf", ____ );
by zhuzhu0307 @ 2024-10-26 13:54:11
@chengguanming 还有浮点型,你说的是整型。