Float not correct in MySQL

前端 未结 5 1764
旧时难觅i
旧时难觅i 2020-12-06 14:06

I am entering \'35444650.00\' as a float into my MySQL and it keeps reformatting to 35444648.00, any help welcome...

5条回答
  •  长情又很酷
    2020-12-06 15:09

    Floats only have a certain level of precision, you may be going beyond how precise a float data type can be. Try using a DOUBLE instead.

提交回复
热议问题