C++:设变量f为float型,将小数点后第3位四舍五入,保留小数点后两位的表达式为A(f*100+0.5)/100B(f*100+0.5)/100.0C(int)(f*100+0.5)/100.0D(int)(f*100+0.5)/100
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/27 21:40:02
![C++:设变量f为float型,将小数点后第3位四舍五入,保留小数点后两位的表达式为A(f*100+0.5)/100B(f*100+0.5)/100.0C(int)(f*100+0.5)/100.0D(int)(f*100+0.5)/100](/uploads/image/z/1772589-21-9.jpg?t=C%2B%2B%EF%BC%9A%E8%AE%BE%E5%8F%98%E9%87%8Ff%E4%B8%BAfloat%E5%9E%8B%2C%E5%B0%86%E5%B0%8F%E6%95%B0%E7%82%B9%E5%90%8E%E7%AC%AC3%E4%BD%8D%E5%9B%9B%E8%88%8D%E4%BA%94%E5%85%A5%2C%E4%BF%9D%E7%95%99%E5%B0%8F%E6%95%B0%E7%82%B9%E5%90%8E%E4%B8%A4%E4%BD%8D%E7%9A%84%E8%A1%A8%E8%BE%BE%E5%BC%8F%E4%B8%BAA%28f%2A100%2B0.5%29%2F100B%28f%2A100%2B0.5%29%2F100.0C%28int%29%28f%2A100%2B0.5%29%2F100.0D%28int%29%28f%2A100%2B0.5%29%2F100)
xRJQ~.5;\^. L0w
&Q6\
$]ts8/vlUC@jZ_^bй@̀HXETs(drFEh6\.ʐptV*)*qHiHeXY§.活"ʞk שC>q3A?w: ?@NDbVXY3v B8ƆJJe&X$2(J^to5;Z# ܃BץS:~ [ UŊ 导EK ]`Qxw,G8|3^