Last time I looked at the documentation the only difference between PHP3's round() function and PHP4's was that the latter had an extra $precision parameter.
Assuming this is what is meant:
function php3round($val, $precision)
{
$scale=pow(10,$precision);
return intval(round($val*$scale)/$scale);
}