Bug #78933 | Negative zero(-0) is returned for mod(%) operation | ||
---|---|---|---|
Submitted: | 23 Oct 2015 4:07 | Modified: | 4 Nov 2015 18:43 |
Reporter: | Su Dylan | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S3 (Non-critical) |
Version: | 5.7.8, 5.7.9, 5.6.28, 5.5.47 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[23 Oct 2015 4:07]
Su Dylan
[23 Oct 2015 7:43]
MySQL Verification Team
Hello Su Dylan, Thank you for the report. Thanks, Umesh
[27 Oct 2015 13:02]
Tor Didriksen
Posted by developer: The result modulo for negative numbers is implementation defined. MySQL uses fmod(3) from the C library, which returns negative zero for this case. So I would say this is "not a bug"
[4 Nov 2015 18:43]
Erlend Dahl
Posted by developer: 27 Oct 2015 6:02] Tor Didriksen The result modulo for negative numbers is implementation defined. MySQL uses fmod(3) from the C library, which returns negative zero for this case. So I would say this is "not a bug"