Skip to content

[Form] [Forms] rounding default const up to down #16757

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
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: 8 additions & 1 deletion reference/forms/types/options/rounding_mode.rst.inc
Original file line number Diff line number Diff line change
@@ -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
Expand Down