bash中变量的处理

不用工具,$(())只能做整数运算。

浮点数需要用bc.

 

bc设结果的小数点后位数:

https://blog.csdn.net/houzhizhen/article/details/80653347

posted @ 2019-01-05 13:53  ys_song  阅读(210)  评论(0编辑  收藏  举报