Skip to content

Commit 797e5d0

Browse files
committed
minor #16862 [Form] Fix constants (OskarStark)
This PR was merged into the 5.4 branch. Discussion ---------- [Form] Fix constants See down in the file ``` * ``\NumberFormatter::ROUND_HALFUP`` Round towards the "nearest neighbor". If both neighbors are equidistant, round up. It rounds ``2.5`` to ``3``, ``1.6`` and ``1.5`` to ``2`` and ``1.4`` to ``1``. ``` Commits ------- f7075dc [Form][NumberType] Fix constants
2 parents e3e93d9 + f7075dc commit 797e5d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/forms/types/options/rounding_mode.rst.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ rounding_mode
22
~~~~~~~~~~~~~
33

44
**type**: ``integer`` **default**: ``\NumberFormatter::ROUND_DOWN`` for ``IntegerType``
5-
and ``\NumberFormatter::ROUND_HALF_UP`` for ``MoneyType`` and ``NumberType``
5+
and ``\NumberFormatter::ROUND_HALFUP`` for ``MoneyType`` and ``NumberType``
66

77
* IntegerType
88
**default**: ``\NumberFormatter::ROUND_DOWN``
99

1010
* MoneyType and NumberType
11-
**default**: ``\NumberFormatter::ROUND_HALF_UP``
11+
**default**: ``\NumberFormatter::ROUND_HALFUP``
1212

1313

1414
If a submitted number needs to be rounded (based on the `scale`_ option), you

0 commit comments

Comments
 (0)