Round Syntax Round(num, decimals); num A number to be rounded. decimals A number of decimals. Description Returns the first argument rounded to the number of decimals specified in the second argument. Note: If numeric precision is important, see Numeric precision. Returns A number. Example $a=12.5567; $b=round($a,2); Result: $b=12.56
Round(num, decimals);
num
decimals
$a=12.5567;
$b=round($a,2);
$b=12.56