I would like to format values so that a value like 20000 would display as $20k and so on. What would be the C# format?
double amount = 20000;
string formatted = string.Format("${0:0,.0}K", amount);
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