Bug #8425 | Precision math: division by column value has insufficient post-decimal places | ||
---|---|---|---|
Submitted: | 10 Feb 2005 22:27 | Modified: | 8 Jun 2005 9:31 |
Reporter: | Trudy Pelzer | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.3-alpha-debug | OS: | Linux (SuSE 9.1) |
Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
[10 Feb 2005 22:27]
Trudy Pelzer
[10 Feb 2005 23:32]
MySQL Verification Team
Thank you for the bug report.
[10 Feb 2005 23:41]
Trudy Pelzer
Here's another example of the same problem, that shows it is not limited just to column values. mysql> select 77777777/7777777; +------------------+ | 77777777/7777777 | +------------------+ | 10.00000 | +------------------+ 1 row in set (0.01 sec) -- This is the incorrect result. The correct result is 10.00000090000009. The rounding is occurring too soon.
[2 Apr 2005 11:32]
Alexey Botchkov
This one is going to be just partially fixed in 5.0 as Oracle supports 38 digits after the decimal point which we can't handle until 5.1
[8 Jun 2005 8:23]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/25746
[8 Jun 2005 9:31]
Alexey Botchkov
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html