直接使用數(shù)字處理手機(jī)號(hào),
例如:13122223333,讀取的結(jié)果為1.312222E0,導(dǎo)致使用該數(shù)據(jù)時(shí)可能出現(xiàn)錯(cuò)誤
解決方案:
在處理cell的數(shù)字格式時(shí),繼續(xù)進(jìn)行判斷
Object value = null;
if (cell.getCellType() == Cell.CELL_TYPE_NUMERIC) {
if (String.valueOf(cell.getNumericCellValue()).indexOf("E")==-1) {
value = String.valueOf(cell.getNumericCellValue());
} else {
value = new DecimalFormat("#").format(cell.getNumericCellValue());
}
}