修复导入数据为负浮点数时丢失精度问题

This commit is contained in:
X.B-H 2021-01-06 11:11:11 +08:00
parent edd090a098
commit b7cdd10f9f
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());
}