Skip to content

Commit

Permalink
minor #13138 Add doc for rounding_mode (VincentLanglet)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Add doc for rounding_mode

Related to symfony/symfony#35729

Commits
-------

fcc8641 Add doc for rounding_mode
  • Loading branch information
javiereguiluz committed Mar 16, 2020
2 parents 155bc6e + fcc8641 commit efc8f70
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions reference/forms/types/percent.rst
Expand Up @@ -18,6 +18,7 @@ the input.
| Options | - `scale`_ |
| | - `symbol`_ |
| | - `type`_ |
| | - `rounding_mode`_ |
+-------------+-----------------------------------------------------------------------+
| Overridden | - `compound`_ |
| options | |
Expand Down Expand Up @@ -55,8 +56,12 @@ scale

**type**: ``integer`` **default**: ``0``

By default, the input numbers are rounded. To allow for more decimal places,
use this option.
This specifies how many decimals will be allowed until the field rounds
the submitted value (via ``rounding_mode``). For example, if ``scale`` is set
to ``2``, a submitted value of ``20.123`` will be rounded to, for example,
``20.12`` (depending on your `rounding_mode`_).

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

symbol
~~~~~~
Expand Down

0 comments on commit efc8f70

Please sign in to comment.