贴两篇博客: https://blog.csdn.net/TesuZer/article/details/80874195 https://blog.csdn.net/feicongcong/article/details/77149243 最好的方法就是转成BigDecimal高精度类型 具体请移步:https://blog.csdn.net/qpzkobe/article/details/80820254 https://blog.csdn.net/z69183787/article/details/53286492