Originally posted by magic-chef
I have defined a column as FLOAT(7,2)
I try to sore 1499.95 into this field and it stores as 1499.00. The .95 is not represented.
I can store any 3 digit number like 399.95 and the .95 is stored.
What is going on?
What version are you running?
create table test (num float (7,2));
Query OK, 0 rows affected (0.00 sec)
mysql> insert into test values (1499.95);
Query OK, 1 row affected (0.00 sec)
mysql> select * from test;
+---------+
| num |
+---------+
| 1499.95 |
+---------+
1 row in set (0.00 sec)
It works for me version number: 3.23.41