#! /bin/bash num1=20.5 num2=5 echo "$num1+$num2" | bc echo "$num1-$num2" | bc echo "20.5*5" | bc echo "scale=20;20.5/5" | bc echo "20.5%5" | bc num=4 echo "scale=2;sqrt($num)" | bc -l echo "scale=2;3^3" | bc -l
Shell Scripting Tutorial For Beginners Eleven - Floating Indicate Math Operatio...
Posted by Hold
on January 24, 2017
0 comments:
Post a Comment