Can you please suggest to me the syntax for doing floating point comparison in a Bash script? I would ideally like to use it as part of an if statement. Here is
if
### The funny thing about bash is this: > AA=10.3 > BB=10.4 ### It needs `$` for compare > [[ $AA > $BB ]] && echo Hello > [[ $AA < $BB ]] && echo Hello Hello
Yeah, I know it's cheating but it works. And scientific notation does not work here.