On Fri, 8 Feb 2002, FLAHERTY, JIM-CONT wrote: > $ aver = $total_hours/$total_jobs > > > some times comes up with 24.999997 . I would like to round or trim to > 24.99 for example . any Ideas ??
my $aver = sprintf("%.2f", $total_hours/$total_jobs); perldoc -f sprintf -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ Forecast, n.: A prediction of the future, based on the past, for which the forecaster demands payment in the present. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]