//temp是从表格中读取的数据,cell是单元格
String temp = Double.toString(cell.getNumericCellValue());
Object inputValue = temp;
long longVal = Math.round(cell.getNumericCellValue());
if (Double.parseDouble(longVal + ".0") == cell.getNumericCellValue())
inputValue = longVal;
else
inputValue = cell.getNumericCellValue();
temp = inputValue.toString();