Skip to content

Commit f7318bb

Browse files
Sébastien FUCHSjaviereguiluz
Sébastien FUCHS
authored andcommitted
[Form] [Forms] rounding default const up to down
1 parent 834839d commit f7318bb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

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

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

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

0 commit comments

Comments
 (0)