| Bug #4485 | Floating point conversions are inconsistent. | ||
|---|---|---|---|
| Submitted: | 9 Jul 2004 16:23 | Modified: | 29 Sep 2008 18:33 |
| Reporter: | Konstantin Osipov | ||
| Status: | Verified | ||
| Category: | Server: Types | Severity: | S3 (Non-critical) |
| Version: | All | OS: | Linux (Linux) |
| Assigned to: | Alexey Kopytov | Target Version: | |
| Tags: | affects_connectors | ||
| Triage: | Triaged: D2 (Serious) | ||
[9 Jul 2004 16:23]
Konstantin Osipov
[9 Jul 2004 19:56]
Konstantin Osipov
Another example (from PeterG talk about SQL standard compliance) mysql> create table t1 (f float, d double); ERROR 1050: Table 't1' already exists mysql> drop table t1; Query OK, 0 rows affected (0.00 sec) mysql> create table t1 (f float, d double); Query OK, 0 rows affected (0.03 sec) mysql> insert into t1 (f, d) values (0.1, 0.1); Query OK, 1 row affected (0.00 sec) mysql> select avg(f), avg(d) from t1; +------------------+--------+ | avg(f) | avg(d) | +------------------+--------+ | 0.10000000149012 | 0.1 | +------------------+--------+ 1 row in set (0.00 sec)
[18 Jan 2005 11:43]
Konstantin Osipov
Monty says: new decimal should fix this and similar bugs nicely. Let us wait for new decimal type and fix it in 5.0 if there still be need.
[29 Sep 2008 18:33]
Konstantin Osipov
Now that we both have a new decimal type and dtoa library there is no reason to keep this bug in "To be fixed later" state.
[29 Sep 2008 18:38]
Konstantin Osipov
WL#3977
[29 Sep 2008 18:42]
Konstantin Osipov
Still reproducible in 6.0.8
