Hi everyone,
i have int for which i need to show two decimal places even number is wihtouth decimal part.
So for example if number is 123.0 i need to show it as 12300, if it is 345.67 i need to show it as 34567.
Then i need to convert it and show as string in order to apply Padding option.
Basically what i need is to show string 123 as 0000000012300 or 345.67 as 34567.
I try with but it doesn't solve my problem.
C#
String.Format("{0:n1}", value)C#
Can you help please?
Thank you.

Kamil Krupski154 reputationPosted Nov 2, 2020, 2:47 AM EST
Kamil Krupski154 reputationPosted Nov 2, 2020, 12:32 AM EST
Vuk Stanojevic163 reputationPosted Nov 2, 2020, 1:27 AM EST
Nisha RegilRank #1,956 · 748 reputationPosted Nov 2, 2020, 3:12 AM EST
Ashutosh GuptaRank #805 · 2.9K reputationPosted Nov 9, 2020, 7:40 AM EST