in reply to Round Down Routine
would work for numbers >= 0.$retval = $number > 16 ? 16 : int($number)
Update: but see int for the implications of this construct. Basically, you should probably use POSIX::floor instead of int().
updated see reply below
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Round Down Routine
by bradenshep (Beadle) on Oct 20, 2007 at 04:02 UTC |