Apache POI not returning the proper value for large numbers coming from Excel
问题 I have an excel file with the value 6228480018362050000 the exported csv looks like this... Int,Bigint,String 1,6228480018362050000,Very big When I try running the following code... InputStream inp = new FileInputStream("/.../test.xlsx"); DataFormatter df = new DataFormatter(true); df.formatCellValue(WorkbookFactory.create(inp).getSheetAt(0).getRow(1).getCell(1)); I get 6228480018362049500 which is the wrong number because precision is hosed. Is there a way to get the actual value? 回答1: If we