- Floating point Operation cannot be performed by Bash
- Basic Calculator (bc language) can be used for Floating pointer
# /bin/bash
read -p "Enter first number : " num1
read -p "Enter second number : " num2
echo $(( num1 + num2 ))
echo $(( num1 - num2 ))
echo $(( num1 * num2 ))
echo $(( num1 / num2 ))
echo $(( num1 % num2 ))
echo ----------------------------------------------------------------------
echo $(expr $num1 + $num2)
echo $(expr $num1 - $num2)
echo $(expr $num1 \* $num2) # escaping * since it has special value
echo $(expr $num1 / $num2)
echo $(expr $num1 % $num2)