I cannot make a mistake in this command:
a=2
b=5
c=3
printf "%.2f\t" "'$a'+'$c'*'$b'" > ofile.txt
I get the value as 50.00. But I have to get it at 17.00.
How to do this when a, b, c are floating point values? e.g. a = 2.4, b = 5.1 and c = 3.2
source
share