@@ -38,35 +38,31 @@ Field Options
38
38
rounding_mode
39
39
~~~~~~~~~~~~~
40
40
41
- **type **: ``integer `` **default **: ``IntegerToLocalizedStringTransformer ::ROUND_HALFUP ``
41
+ **type **: ``integer `` **default **: ``NumberToLocalizedStringTransformer ::ROUND_HALFUP ``
42
42
43
43
If a submitted number needs to be rounded (based on the ``precision ``
44
44
option), you have several configurable options for that rounding. Each
45
- option is a constant on the :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ DataTransformer\\ IntegerToLocalizedStringTransformer `:
45
+ option is a constant on the :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ DataTransformer\\ NumberToLocalizedStringTransformer `:
46
46
47
- * ``IntegerToLocalizedStringTransformer::ROUND_DOWN `` Rounding mode to
48
- round towards zero.
47
+ * ``NumberToLocalizedStringTransformer::ROUND_DOWN `` Round towards zero.
49
48
50
- * `` IntegerToLocalizedStringTransformer ::ROUND_FLOOR `` Rounding mode to
51
- round towards negative infinity.
49
+ * `` NumberToLocalizedStringTransformer ::ROUND_FLOOR `` Round towards negative
50
+ infinity.
52
51
53
- * ``IntegerToLocalizedStringTransformer::ROUND_UP `` Rounding mode to round
54
- away from zero.
52
+ * ``NumberToLocalizedStringTransformer::ROUND_UP `` Round away from zero.
55
53
56
- * `` IntegerToLocalizedStringTransformer ::ROUND_CEILING `` Rounding mode
57
- to round towards positive infinity.
54
+ * `` NumberToLocalizedStringTransformer ::ROUND_CEILING `` Round towards
55
+ positive infinity.
58
56
59
- * ``IntegerToLocalizedStringTransformer::ROUND_HALFDOWN `` Rounding mode
60
- to round towards "nearest neighbor" unless both neighbors are equidistant,
61
- in which case round down.
57
+ * ``NumberToLocalizedStringTransformer::ROUND_HALF_DOWN `` Round towards the
58
+ "nearest neighbor". If both neighbors are equidistant, round down.
62
59
63
- * `` IntegerToLocalizedStringTransformer::ROUND_HALFEVEN `` Rounding mode
64
- to round towards the "nearest neighbor" unless both neighbors are equidistant,
65
- in which case, round towards the even neighbor.
60
+ * `` NumberToLocalizedStringTransformer::ROUND_HALF_EVEN `` Round towards the
61
+ "nearest neighbor". If both neighbors are equidistant, round towards the
62
+ even neighbor.
66
63
67
- * ``IntegerToLocalizedStringTransformer::ROUND_HALFUP `` Rounding mode to
68
- round towards "nearest neighbor" unless both neighbors are equidistant,
69
- in which case round up.
64
+ * ``NumberToLocalizedStringTransformer::ROUND_HALF_UP `` Round towards the
65
+ "nearest neighbor". If both neighbors are equidistant, round up.
70
66
71
67
.. include :: /reference/forms/types/options/grouping.rst.inc
72
68
0 commit comments