mysql float 精度丢失

mysql 中保存了字段 float s=0.3
直接执行sql 查出来是 0.3
但是JPA 执行查询结果是 0.2999
换成decimal 就可以

原文地址:https://www.cnblogs.com/lanqie/p/11190379.html