【发布时间】:2017-05-27 11:41:31
【问题描述】:
我正在使用 Apache POI 检索单元格双精度值:
1.以openxml格式存储的cell实际值为“5.259761432023309”, 2.同一单元格的格式化显示值为“5.26%”。 3.但是MS Excel公式栏上显示的值是“5.25976143202331%”
使用 Apache POI,我可以检索:
值为1,使用cell.getNumericValue();
我也可以检索 值 2,使用 DataFormatter df = new DataFormatter();String asItLooksInExcel = df.formatCellValue(cell);
但是,我无法检索值 3,即公式栏上显示的值,请建议检索方法。
【问题讨论】:
标签: java excel apache apache-poi aspose