Apache POI Currency Data Format
问题 I try to convert numbers into european currency style with Apache POI HSSFDataFormat cf = workbook.createDataFormat(); currencyCellStyle = workbook.createCellStyle(); currencyCellStyle.setDataFormat(cf.getFormat("#.###,#0")); I have for example the number 2400 and 2.4 What I want is 2400,00 and 2,40 . But POI gives me 2400,0 and 2,40. When I try to change it to currencyCellStyle.setDataFormat(cf.getFormat("#.###,00")); I get the result 2400,00 and 2,400. Thats also not what I want. Is there a