Skip to content

Commit a3d70aa

Browse files
committed
Minor tweaks
1 parent efc8f70 commit a3d70aa

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

reference/forms/types/percent.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ the input.
1515
+-------------+-----------------------------------------------------------------------+
1616
| Rendered as | ``input`` ``text`` field |
1717
+-------------+-----------------------------------------------------------------------+
18-
| Options | - `scale`_ |
18+
| Options | - `rounding_mode`_ |
19+
| | - `scale`_ |
1920
| | - `symbol`_ |
2021
| | - `type`_ |
21-
| | - `rounding_mode`_ |
2222
+-------------+-----------------------------------------------------------------------+
2323
| Overridden | - `compound`_ |
2424
| options | |
@@ -51,6 +51,12 @@ the input.
5151
Field Options
5252
-------------
5353

54+
.. include:: /reference/forms/types/options/rounding_mode.rst.inc
55+
56+
.. versionadded:: 5.1
57+
58+
The ``rounding_mode`` option was introduced in Symfony 5.1.
59+
5460
scale
5561
~~~~~
5662

@@ -61,8 +67,6 @@ the submitted value (via ``rounding_mode``). For example, if ``scale`` is set
6167
to ``2``, a submitted value of ``20.123`` will be rounded to, for example,
6268
``20.12`` (depending on your `rounding_mode`_).
6369

64-
.. include:: /reference/forms/types/options/rounding_mode.rst.inc
65-
6670
symbol
6771
~~~~~~
6872

0 commit comments

Comments
 (0)