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

Merge pull request !161 from 嘿白熊/master
This commit is contained in:
若依 2021-01-08 10:46:36 +08:00 committed by Gitee
commit f3cb18c836
1 changed files with 1 additions and 1 deletions

View File

@ -1059,7 +1059,7 @@ public class ExcelUtil<T>
}
else
{
if ((Double) val % 1 > 0)
if ((Double) val % 1 != 0)
{
val = new BigDecimal(val.toString());
}