In shell script we can substitute expr $a*$b
with $(($a+$b))
.
But why not just with (($a+$b))
, because in any resource it is written that (())
is for integer computation.
So we use $(())
when there are variables instead of integer values do we? And what should we use instead of $(())
when variables can receive float values?