提交 f3cb18c8 编写于 作者: 若依 提交者: Gitee

!161 修复导入数据为负浮点数时,导入结果会丢失精度问题

Merge pull request !161 from 嘿白熊/master
......@@ -1059,7 +1059,7 @@ public class ExcelUtil<T>
}
else
{
if ((Double) val % 1 > 0)
if ((Double) val % 1 != 0)
{
val = new BigDecimal(val.toString());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册