I am trying hard to compare two floating point numbers within a bash script. I have to variables, e.g.
let num1=3.17648e-22 let num2=1.5
No
You can use awk combined with a bash if condition:
if awk 'BEGIN {exit !('$d1' >= '$d2')}'; then echo "yes" else echo "no" fi