EPPLUS excel percent format
C#
4
Posts
3
Posters
0
Views
1
Watching
-
May I know how can I convert a decimal (eg: 0.3333) to percent format. I have tried with this code: ws.Cells[1,1].Value = 0.3333; ws.Cells[1.1].Style.Numberformat.Format = "0%"; But this give me 33% instead of 33.33%
-
May I know how can I convert a decimal (eg: 0.3333) to percent format. I have tried with this code: ws.Cells[1,1].Value = 0.3333; ws.Cells[1.1].Style.Numberformat.Format = "0%"; But this give me 33% instead of 33.33%
-
It's work! Thank you so much. :)
-
May I know how can I convert a decimal (eg: 0.3333) to percent format. I have tried with this code: ws.Cells[1,1].Value = 0.3333; ws.Cells[1.1].Style.Numberformat.Format = "0%"; But this give me 33% instead of 33.33%
double t = 0.3333; Console.WriteLine(t.ToString("##.##%"));