I need one C# formatting string that will handle those cases:
For input of 1234.561 should produce: 1,234.56
For input of 1234 should produce: 1,234
I tried {0:N0}, {0:N2} and {0:#.##}. Doesn't work.
Found the solution.
{0:#,#.##}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With