shell脚本四舍五入 printf "%.0f " $var #四舍五入 eg: temp3=8 speed1=9 all_cnt_num=$(printf "%.0f " $((temp3/speed1)))