You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is misleading to name the option "precision" when it actually refers to the
numbers after the decimal point, which should have been "scale" as it is declared
in the Entity for doctrine.
This PR was merged into the 2.7 branch.
Discussion
----------
Deprecated precision option in favor of scale
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | yes
| Tests pass? | yes
| Fixed tickets | #7383
| License | MIT
| Doc PR | symfony/symfony-docs#5005
Scale is the number of digits to the right of the decimal point in a number, precision isn't. See the referenced ticket for more context.
Commits
-------
2a2f7e2 Deprecated precision option in favor of scale
It is misleading to name the option "precision" when it actually refers to the
numbers after the decimal point, which should have been "scale" as it is declared
in the Entity for doctrine.
and generally in mysql :
http://dev.mysql.com/doc/refman/5.1/en/precision-math-decimal-changes.html
M is the maximum number of digits (the precision)
D is the number of digits to the right of the decimal point (the scale)
The text was updated successfully, but these errors were encountered: