linux运维经验分享
2017年9月27日
shell习题
No Comments
aming
题目如下:
a=0.5 b=3 c=a*b 求c的值
参考答案
#!/bin/bash a=0.5 b=3 c=`echo "scale=1;$a*$b"|bc` echo $c
shell习题-shell中的小数
2017年9月27日
shell习题
No Comments
aming
题目如下:
a=0.5 b=3 c=a*b 求c的值
参考答案