Decimal value issue during exporting excel and setting IS_DETECT_CELL_TYPE to true

 

I'm getting issue regarding decimal values when report exported to excel using jasper report 4.6.
Following is the paramaeter which I set during exporting report to excel.
 
                JExcelApiExporter exporterXLS = new JExcelApiExporter();                
                exporterXLS.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE);
 
From the query itself value is fixed to 2 decimal point.
Reports output displays correct value but when tried to work with the cell it shows difference in values. 
 
Following screenshot shows the difference,
 
 
 
This issue happens when contains some value other than zero after decimal point. i.e. works correctly with 15.00 but not 15.33.
jitesh_0149's picture
Joined: Apr 25 2010 - 3:21am
Last seen: 9 years 12 months ago

0 Answers:

No answers yet
Feedback
randomness