I have tried following data formats for for HSSFCell #,##0.0000 #,##0.000 #,###.0000 But I am not getting the expected result. I am using poi version 1.5.1 and I have tried 1.10 dev jar also. Following are the result Value Data Format Result Expected result 12345.12345 #,##0.0000 12345.12345 12,345.1234 12345.12 #,##0.0000 12345.12 12,345.1200 -12345.123456 #,##0.0000 -12345.123456 -12,345.1234 12345.12345 #,##0.000 12345.12345 12,345.123 12345 #,##0.000 12345 12,345.000 Please let me know it I am expecting something unusual. But the number of decimal digits are not returning correct. Please suggest solution.
please try with 2.0-pre2
Support of user defined data format in 2.0-pre2 is awesome. Thanks for the great effort. This bug can be closed now.
excellent.