I am working in bash script and i am kind to this script. I have a number as follows
1.0 1.1 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9
I am trying to get highest number from the above numbers. When i use the below script i am getting 1.9 instead of 1.16. Could you please help on this. For simple i have take 3 number
a=1.9
b=1.16
max=1.9
if (( $(echo "$a < $b" | bc -l ) )); then
max=$b
fi
Excepted result : 1.16
Actual result : 1.9