$ declare -i n1 n2 $ n1=3+4*5 $ n2=(3+4)*5 $ if (("$n1" < "$n2")); then echo "number $n1 is smaller with the difference of 12 from $n2" ; fi number 23 is smaller with the difference of 12 from 35