Octavian Rasnita wrote: > Hi all, > > I would like to round a number but to the next integer not like the int > function does. > > I've tried: > > my $num = 1.33; > $num = $num + 0.499999; > $num = sprintf "%.0f", $num; > > This works but I am wondering if there is a cleaner and better solution > because there is a small chance not to work for some numbers. > > Thank you. > > Teddy's Center: http://teddy.fcc.ro/
can you be more specific on how you want your rounding rules to be? chris -- ------------------------------- Just Your Friendly Neighborhood _SPIDEY_
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]