scale: 保留小数点后面个数
[root@localhost ~]# NUM=23 [root@localhost ~]# echo "scale=2;$NUM / 8" |bc -l 2.87
Last updated 2 years ago