use POSIX; $round = floor($num + 0.5); #unless you need to round .5 to even [download]
In reply to Re: Rounding without int() or printf() by I0 in thread Rounding without int() or printf() by Mandor