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
猜你喜欢
  • 2022-12-23
  • 2022-01-05
  • 2021-08-14
  • 2021-11-29
相关资源
相似解决方案