1
Bash itself is unable to deal with floating point math. The best bet is to use bc like this: $ bc <<<"248*80/100" 198 The shell (bash,sh) is able to calculate only integers: $ bash -c 'echo $((248*80/100))' 198 The ksh93 is able to deal with floating point math: $ ksh -c 'echo $((248*0.8))...