📜  bc add - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:40.907000             🧑  作者: Mango

代码示例1
a=1.25
b=3.49
sum=$(echo "scale=2; "$a"+"$b| bc -l) #scale defines number of decimals
4.74