printf "%.0f\n" $var #四舍五入 eg: temp3=8 speed1=9 all_cnt_num=$(printf "%.0f\n" $((temp3/speed1))) 相关文章: 2022-12-23 2022-12-23 2021-09-01 2022-01-23