标签:问题 0.00 四舍五入 href int http targe ble lan
https://vjudge.net/contest/271273#problem/A
哎,后面有个四舍五入的问题。
if( (int) (right * 1000) % 10 >= 5)
right -= 0.005;
printf("%.2f\n", right);
.2f是默认四舍五入的,上面一段代码是取消四舍五入。
标签:问题 0.00 四舍五入 href int http targe ble lan
原文地址:https://www.cnblogs.com/downrainsun/p/9986634.html