Did you try with MS Excel ? And did you try mixing amounts with decimals and without.
In fact if you look at the screenshot below there are 2 issues:
the useless comma at the end of the amount without decimal “1000”
hard coded format that is not consistent among cells for decimals
The format yielded in Excel export is a custom one, created in createFormats() method
DataForma format = wb.createDataFormat();
doubleFormatCellStyle = wb.createCellStyle();
doubleFormatCellStyle.setDataFormat(format.getFormat("#,##0.################"));
This is weird anyway because this format requires displaying a comma even if there is no decimals. LibreOffice seems to fix that on the fly whereas Excel does exactly what it was required to do, that’s design choice on their end.
Moreover, putting aside the comma in excess, this custom format makes Excel behaves like its “standard” cell format (by default) which displays numbers without decimals as integers, and others with decimals. No need to define a custom format then.
In our case we need fixed precision in display (much more readable), which is easy to get in CUBA app, but not in Excel export.
Which is equivalent to:
This is what we have done, using format strings defined in CUBA configuration, I think having this behavior by default would be much more consistent for the platform.