[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]
Formatting 100000 to display as $100K
Leave a reply
[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]