Formatting 100000 to display as $100K

[code=c#]
Console.WriteLine(String.Format(“${0:0,}K”, 499));
Console.WriteLine(String.Format(“${0:0,}K”, 500));
[/code]
[code=c#]Output:
$0K
$1K[/code]

Leave a Reply

Your email address will not be published. Required fields are marked *