Bug #1936 | Multiplication error when I do a SELECT | ||
---|---|---|---|
Submitted: | 24 Nov 2003 13:54 | Modified: | 25 Nov 2003 14:23 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.0.16 | OS: | Linux (Linux Debian 3.0r1 stable) |
Assigned to: | CPU Architecture: | Any |
[24 Nov 2003 13:54]
[ name withheld ]
[25 Nov 2003 14:23]
Dean Ellis
This is due to the difference in precision between FLOAT and DOUBLE, and is a side-effect of floating point math. You can view the same behavior with a simple C program that multiplies float and double values. Thank you.