round() / floor() / ceil()Rounding functions.Syntaxround($number, $digits)Descriptionround rounds to the nearest, floor down, ceil up.ExampleLoading editor…▶ Try it yourselfExpected output3.14 4When to use?Displaying money, averages.Related commandsArithmetic ( + - * / % ** )← Arithmetic ( + - * / % ** )max() / min() / abs() →