Function

round

Synopsis

round(mixed, mixed ...): float

Area
Runtime\PS\Core\Math\roundareas

Description

round returns $num rounded to $precision decimal places as a float, always half away from zero; round takes a $mode argument and ignores it and it honours only PHP_ROUND_HALF_UP.

Usage

$value = round($arguments);
$fn = round(...);

See also