May want to clean this up at some point. Note that Bash doesn't have floating point arithmetic support in `(())`.