Im trying to compare two numbers with decimals but its not working as expected.
a=1
b=1.1
if [ $a -eq $b ]
then echo "equal"
fi
When I do this it says that the numbers are equal. Ultimately Im using -le and -ge in the if statements but I tested with -eq for simplicity.
Any way to make this work? Im on Solaris 10.