I have a double value which I need to attach a percentage (%) sign to it like (80,00%). This gets written as a text in the Excel file due to my way of coding.
Here is the following code in C#.
var decimalValue = 80.0m;
(decimalValue / 100)?.ToString("#0.00%");
Output
80,00%
In Excel file I get a green issue mark which tells that the number is stored as text.
How to solve this issue buy storing the double value with the percentage as a 'number' so I won't get the green mark?