I must change Double format from dot to comma. I try this:
DecimalFormat df = new DecimalFormat("#,00",
DecimalFormatSymbols.getInstance(Locale.GERMANY));
selectedSheet.addCell(new Number(selectedCellColumn,
selectedCellRow,
Double.valueOf(df.format(value)));
but it`s not working. Have you got any ideas how you can change a dot to a comma?
new Number()- I assume this takes double as the third argument? In that case, formatting the double value before you pass it in there is impossible, you need to set the format on how the sheet will display numbers in the cell formatting settings.Or is the problem that you have a string like "5,3" and want to convert it to double? It looks like the varaible
valuealready has a double value in it.