I've got a column set as a FLOAT(32,11) and I'm getting some odd results with storing values. Now I know that floats are only an approximation however this seems to be a horrible approximation especially with the given precision.
mysql> CREATE TABLE test (a FLOAT(32,11));
mysql> INSERT INTO test (a) VALUES (300000.08);
mysql> SELECT * FROM test;
+--------------------+
| a |
+--------------------+
| 300000.09375000000 |
+--------------------+
1 row in set (0.00 sec)
Seems odd that it isn't using all the available precision. Any ideas on what I'm missing?
MySQL Version 5.1.73 on CentOS
30,000.08(small by factor of 10), you get30,000.08007812500back out.