Skip to content

Commit 93bb0e4

Browse files
committed
minor #16757 [Form] [Forms] rounding default const up to down (Sébastien FUCHS)
This PR was submitted for the 6.0 branch but it was squashed and merged into the 5.4 branch instead. Discussion ---------- [Form] [Forms] rounding default const up to down Hi, Just a fix about a default rounding const. ![image](https://user-images.githubusercontent.com/11288901/165517891-1ac183ec-4e33-44e6-b8aa-44c8824a5800.png) More details : https://github.com/symfony/symfony/blob/60ce5a3dfbd90fad60cd39fcb3d7bf7888a48659/src/Symfony/Component/Form/Extension/Core/Type/IntegerType.php#L49 Commits ------- f7318bb [Form] [Forms] rounding default const up to down
2 parents 834839d + f7318bb commit 93bb0e4

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)