Skip to content

Commit 150b3f9

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Form] [Forms] rounding default const up to down
2 parents a8d4976 + 274438d commit 150b3f9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
rounding_mode
22
~~~~~~~~~~~~~
33

4-
**type**: ``integer`` **default**: ``\NumberFormatter::ROUND_HALFUP``
4+
**type**: ``integer`` **default**: ``\NumberFormatter::ROUND_DOWN`` for ``IntegerType``
5+
and ``\NumberFormatter::ROUND_HALF_UP`` for ``MoneyType`` and ``NumberType``
6+
7+
* IntegerType
8+
**default**: ``\NumberFormatter::ROUND_DOWN``
9+
10+
* MoneyType and NumberType
11+
**default**: ``\NumberFormatter::ROUND_HALF_UP``
12+
513

614
If a submitted number needs to be rounded (based on the `scale`_ option), you
715
have several configurable options for that rounding. Each option is a constant

0 commit comments

Comments
 (0)