Float not correct in MySQL

前端 未结 5 1766
旧时难觅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

    You are going past the level of precision possible. You need to define the float with more precision, i.e. "FLOAT(10,5)" would mean a float that can have 10 digits total with up to five after the decimal point.

提交回复
热议问题