$PERCENT is a float so use "bc" to compare it