When I add xx to mysql float column, it is wrong result, Is it a bug?
问题 My mysql: 5.6.16 my table info : CREATE TABLE `xxx` ( `uid` int(11) NOT NULL, `money` float(10,2) NOT NULL DEFAULT '0.00' , `real_money` float(10,2) NOT NULL , `available_invoice` float(10,2) DEFAULT NULL, PRIMARY KEY (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; my table content is : 1 100000.00 0.00 0.01 30 99992560.00 0.03 0.00 61 65216.00 0.03 0.00 79 10.00 0.00 0.00 80 10.00 0.00 0.00 81 -70.00 0.00 0.00 83 60.00 0.00 0.00 100 100.00 50.00 50.00 889 980.00 0.00 0