|
@@ -17,7 +17,6 @@ import java.lang.reflect.Field;
|
|
|
import java.lang.reflect.InvocationTargetException;
|
|
|
import java.nio.file.Files;
|
|
|
import java.nio.file.Paths;
|
|
|
-import java.text.DecimalFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.Collection;
|
|
@@ -380,8 +379,7 @@ public class ExcelUtils {
|
|
|
if (DateUtil.isCellDateFormatted(cell)) {
|
|
|
value = TimeTool.convertDateObj2DateStr(cell.getDateCellValue(), cell.getCellStyle().getDataFormatString());
|
|
|
} else if (String.valueOf(cell.getNumericCellValue()).contains(".")) {
|
|
|
- DecimalFormat df = new DecimalFormat("#.####");
|
|
|
- value = df.format(cell.getNumericCellValue());
|
|
|
+ value = String.format("%f", cell.getNumericCellValue());
|
|
|
} else
|
|
|
value = String.valueOf(cell.getNumericCellValue());
|
|
|
}
|