📜  sum decimals bash - Shell-Bash 代码示例

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

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