Skip to content

Commit a2369b4

Browse files
author
Sébastien FUCHS
committed
[Forms] Rounding const by type
1 parent bc279ad commit a2369b4

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_DOWN``
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)