题解 | #取近似值#
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
1.printf时已经转换成int,要用%d
2.float是4byte,double是8byte
3.float转换成int会损失精度
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
1.printf时已经转换成int,要用%d
2.float是4byte,double是8byte
3.float转换成int会损失精度
相关推荐