This is a comment on the FAQ Does perl have a round function? What about ceil() and floor()? Trig functions?. See also vroom's How do I round a floating point number?
An effective way to "ceil" if you don't have a perl version capable of "ceil" (such as a specialized small Windows distro), you can effectively "ceil" this way: $ceiled_number = int( $float + 0.99999999 );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: ceil without ceil
by why_bird (Pilgrim) on Mar 13, 2008 at 14:48 UTC |
Back to
Meditations