Skip to content

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

Merged
merged 1 commit into from
Apr 16, 2018

Conversation

syastrebov
Copy link
Contributor

@syastrebov syastrebov commented Apr 3, 2018

Added docs for symfony/symfony#26767

@syastrebov syastrebov force-pushed the set-money-rounding-mode branch 4 times, most recently from a015ecc to 47954fe Compare April 3, 2018 15:59
@javiereguiluz javiereguiluz added the Waiting Code Merge Docs for features pending to be merged label Apr 4, 2018
fabpot added a commit to symfony/symfony that referenced this pull request Apr 4, 2018
…(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
@xabbuh xabbuh removed the Waiting Code Merge Docs for features pending to be merged label Apr 10, 2018
@xabbuh xabbuh added this to the 4.1 milestone Apr 10, 2018
@@ -16,6 +16,7 @@ how the input and output of the data is handled.
+-------------+---------------------------------------------------------------------+
| Options | - `currency`_ |
| | - `divisor`_ |
| | - `rounding_mode`_ |
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xabbuh done

@syastrebov syastrebov force-pushed the set-money-rounding-mode branch from 47954fe to 268e439 Compare April 11, 2018 09:40
@syastrebov syastrebov force-pushed the set-money-rounding-mode branch from 268e439 to 819d0a6 Compare April 11, 2018 09:42
@javiereguiluz
Copy link
Member

@syastrebov thanks a lot for contributing these missing docs. It was a great first contribution to Symfony Docs!

@javiereguiluz javiereguiluz merged commit 819d0a6 into symfony:master Apr 16, 2018
javiereguiluz added a commit that referenced this pull request Apr 16, 2018
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants