Hi,
I am just moving from MySQL 3.x to 5.0.45.
I have various database tables with column types of float(3,2) to store prices.
However, no matter what I do, the values are always inputted as 9.99 for both float(3,2) and decimal(3,2).
CREATE TABLE test (
id int(11) default NULL,
test_float float(3,2) default NULL,
test_decimal decimal(3,2) default NULL
);
INSERT INTO test (id,test_float,test_decimal) VALUES (‘1’,‘40.00’,‘40.00’);
It seems simple enough, but for the life of me I can’t work it out?
Regards,
Christiaan