round

round(int|float $num, int $precision = 0, int $mode = PHP_ROUND_HALF_UP): float

Returns the rounded value of the number to specified precision (number of digits after the decimal point). The precision can also be negative or zero (default).

Input:
[?]

Have Feedback?

Let us know how we can improve this tool.
Share Feedback