Commit f3cb18c8 authored by 若依's avatar 若依 Committed by Gitee

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

Merge pull request !161 from 嘿白熊/master
parents 7d0eb3b8 b7cdd10f
......@@ -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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment