Apache POI : How to format numeric cell values

前端 未结 4 591
青春惊慌失措
青春惊慌失措 2020-12-19 21:28

I am using Apache POI 3.9 for XLS/XLSX file processing.

In the XLS sheet, there is a column with numeric value like \"3000053406\".

When I read it with POI w

4条回答
  •  感情败类
    2020-12-19 22:20

    long varA = new Double(cellB1.getNumericCellValue()).longValue(); This will bring the exact value in variable varA.

提交回复
热议问题