private String numberFormat(Cell cell){ NumberFormat numberFormat = NumberFormat.getInstance(); // 不显示千位分割符,否则显示结果会变成类似1,234,567,890 numberFormat.setGroupingUsed(false); if (cell == null) { return "null"; } String value = cell.toString(); int i = cell.getCellType(); if (i == 1) {//字符串类型 return value; } else { value =numberFormat.format(cell.getNumericCellValue()); return value; } }
poi excel导入整数数字自动加小数点解决
免责声明:文章转载自《poi excel导入整数数字自动加小数点解决》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇STM32-ETH-Lwip以太网通信SAP MM 根据采购订单反查采购申请?下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=