How to fetch the cell value if the cell type is Percentage using apache poi

I am reading the cell type of Percentage using Apache POI But in the code its coming as Numeric Cell.When I run the code its coming as "price":0.028.

But I want the final output should be as same as that is defined in Excel cell(2.8%,5.5%,11.0%) .

double vv=currentCell.getNumericCellValue(); System.out.println(vv); Entry.setPrice( currentCell.getNumericCellValue()); 

enter image description here

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.