|
@@ -233,6 +233,7 @@ public class ImportExcel {
|
|
|
} else {
|
|
|
NumberFormat nf = NumberFormat.getInstance();
|
|
|
nf.setGroupingUsed(false);// true时的格式:1,234,567,890
|
|
|
+ nf.setMaximumFractionDigits(4);
|
|
|
val = nf.format(cell.getNumericCellValue());// 数值类型的数据为double,所以需要转换一下
|
|
|
}
|
|
|
} else if (cell.getCellType() == Cell.CELL_TYPE_STRING) {
|