0

How can i format this textbox?

I have this example 123456789. i want it display like: 123,456,789.00. how can i do?

4th Oct 2018, 3:51 AM
Vannak Saing
Vannak Saing - avatar
2 Réponses
+ 4
Well it seems you need number formatting with 2 decimal places so the following line will do the job. 😉 Console.WriteLine(
quot;{ 123_456_789 .ToString("n2") }");
4th Oct 2018, 4:19 AM
Zephyr Koo
Zephyr Koo - avatar
+ 1
Thank you!
26th Apr 2020, 2:09 AM
Vannak Saing
Vannak Saing - avatar