By default its not possible to compare floating point numbers in bash.
But we can acheive the same using bc command
#echo "5.2 > 5.4" | bc
#echo "5.6 > 5.4" | bc
If the result is greater than zero, first number is greater than second number and otherwise second number is greater than first number.