Answers for "bc add"

0

bc add

a=1.25
b=3.49
sum=$(echo "scale=2; "$a"+"$b| bc -l) #scale defines number of decimals
4.74
Posted by: Guest on February-19-2021

Code answers related to "bc add"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language