Updated min and max rules to use bccomp for number comparison.