I have an Excel sheet generated with Epplus, I am experiencing some pain points and I wish to be directed by someone who have solved a similar challenge.
I need to apply number formatting to a double value and I want to present it in Excel like this.
- 8 → 8.0
- 12 → 12.0
- 14.54 → 14.5
- 0 → 0.0
Here is my code
ws.Cells[row, col].Style.Numberformat.Format = "##0.0";
The final Excel file always append E+0 to the end of this format and therefore presents the final values like this instead.
- 8 → 8.0E+0
- 12 → 12.0E+0
- 14.54 → 14.5E+0
- 0 → 000.0E+0
When I check in the format cells of the generated Excel sheet, I see that my format appears as ##0.0E+2
instead of ##0.0
that I applied.
What may be wrong?