From f7318bba58ed9281d8c24551d889d7c86aa731e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20FUCHS?= Date: Wed, 27 Apr 2022 14:58:41 +0200 Subject: [PATCH] [Form] [Forms] rounding default const up to down --- reference/forms/types/options/rounding_mode.rst.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reference/forms/types/options/rounding_mode.rst.inc b/reference/forms/types/options/rounding_mode.rst.inc index 525f5d99cdf..84069894723 100644 --- a/reference/forms/types/options/rounding_mode.rst.inc +++ b/reference/forms/types/options/rounding_mode.rst.inc @@ -1,7 +1,14 @@ rounding_mode ~~~~~~~~~~~~~ -**type**: ``integer`` **default**: ``\NumberFormatter::ROUND_HALFUP`` +**type**: ``integer`` + +* IntegerType +**default**: ``\NumberFormatter::ROUND_DOWN`` + +* MoneyType and NumberType +**default**: ``\NumberFormatter::ROUND_HALF_UP`` + If a submitted number needs to be rounded (based on the `scale`_ option), you have several configurable options for that rounding. Each option is a constant