diff --git a/reference/math/constants.xml b/reference/math/constants.xml index 7cfe6afa5c..e371aebcaf 100644 --- a/reference/math/constants.xml +++ b/reference/math/constants.xml @@ -1,5 +1,5 @@ - + &reftitle.constants; &extension.constants.core; @@ -100,6 +100,26 @@ 0.57721566490153286061 Euler constant [5.2.0] + + PHP_ROUND_HALF_UP + 1 + Round halves up [5.3.0] + + + PHP_ROUND_HALF_DOWN + 2 + Round halves down [5.3.0] + + + PHP_ROUND_HALF_EVEN + 3 + Round halves to even numbers [5.3.0] + + + PHP_ROUND_HALF_ODD + 4 + Round halves to odd numbers [5.3.0] + diff --git a/reference/math/functions/round.xml b/reference/math/functions/round.xml index 1b52185e36..0ce628b9c2 100644 --- a/reference/math/functions/round.xml +++ b/reference/math/functions/round.xml @@ -1,5 +1,5 @@ - + round @@ -11,6 +11,7 @@ floatround floatval intprecision + intmodePHP_ROUND_HALF_UP Returns the rounded value of val to @@ -72,6 +73,17 @@ + + mode + + + One of PHP_ROUND_HALF_UP, + PHP_ROUND_HALF_DOWN, + PHP_ROUND_HALF_EVEN, or + PHP_ROUND_HALF_ODD. + + + @@ -103,6 +115,29 @@ echo round(5.055, 2); // 5.06 + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.3.0 + + The mode parameter was introduced. + + + + + + + &reftitle.seealso;