From fcc86411ab0f556471c23cc9d4767d3b5693ed3d Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Fri, 14 Feb 2020 23:47:02 +0100 Subject: [PATCH] Add doc for rounding_mode --- reference/forms/types/percent.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reference/forms/types/percent.rst b/reference/forms/types/percent.rst index 0455b5e8a5b..a42ab18f043 100644 --- a/reference/forms/types/percent.rst +++ b/reference/forms/types/percent.rst @@ -18,6 +18,7 @@ the input. | Options | - `scale`_ | | | - `symbol`_ | | | - `type`_ | +| | - `rounding_mode`_ | +-------------+-----------------------------------------------------------------------+ | Overridden | - `compound`_ | | options | | @@ -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 ~~~~~~ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy