8000 Add doc for rounding_mode by VincentLanglet · Pull Request #13138 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Add doc for rounding_mode #13138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions reference/forms/types/percent.rst
Original file line number Diff line number Diff line change
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