I'm trying to perform simple math, to check if a variable is greater or equal to "1.5"
but I'm getting [: 2.41: integer expression expected
Code:
reSum=$(expr "scale=1;555/230" | bc)
if [ $reSum -ge "1.5" ]; then
...
fi
How can I do floating-point comparisons in shell script?