📜  bash 添加浮点数 - Shell-Bash 代码示例

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

代码示例3
#Just use following structure for summing up varibles:
sum=$((var1 + var2))
#For float numbers use next instruction:
sum=$(bc <<< $var1'+'$var2)