in reply to Re: Round Down Routine
in thread Round Down Routine

I think you mean
$retval = $number > 16 ? 16 : int($number)
since yours would return 16 every time?

int() might return 0, given a value less than 1, though, so POSIX::floor() might still be a better plan.