(PHP 8 >= 8.4.0)
The RoundingMode enum is used to specify how rounding should be performed for round(), bcround(), and BcMath\Number::round().
5, round to the integer with the larger absolute value. 5, round to the integer with the smaller absolute value. 5, round to the even integer. 5, round to the odd integer.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/enum.roundingmode.php