2

This is what I get

 echo $((5/2))
2

How to make $((5/2)) giving me 2.5 ?

sharkant
  • 3,710

1 Answers1

2

You can't. Bash will only work with integers. For more precision, use something like bc.