-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
rounding_mode for money type #9543
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
rounding_mode for money type #9543
Conversation
a015ecc
to
47954fe
Compare
…(syastrebov) This PR was merged into the 4.1-dev branch. Discussion ---------- [Form] ability to set rounding strategy for MoneyType | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | no | License | MIT | Doc PR | symfony/symfony-docs#9543 Added `rounding_mode` to the `MoneyType` to be possible to change rounding strategy for money values. For now it's just `ROUND_HALF_UP` but it's good to have `ROUND_DOWN` as well. E.g. to transform `15.999` to `15.99` instead of `15.1`. Commits ------- f3b1424 rounding_mode for money type
reference/forms/types/money.rst
Outdated
@@ -16,6 +16,7 @@ how the input and output of the data is handled. | |||
+-------------+---------------------------------------------------------------------+ | |||
| Options | - `currency`_ | | |||
| | - `divisor`_ | | |||
| | - `rounding_mode`_ | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be after grouping
IMO to sort the options alphabetically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xabbuh done
47954fe
to
268e439
Compare
268e439
to
819d0a6
Compare
@syastrebov thanks a lot for contributing these missing docs. It was a great first contribution to Symfony Docs! |
This PR was merged into the master branch. Discussion ---------- rounding_mode for money type Added docs for symfony/symfony#26767 Commits ------- 819d0a6 rounding_mode for money type
Added docs for symfony/symfony#26767