I am trying to compare two decimal values but I am getting errors. I used
if [ \"$(echo $result1 \'>\' $result2 | bc -l)\" -eq 1 ];then
Can't bash force type conversion? For example:
($result1 + 0) < ($result2 + 0)