Silly question, I want to format an integer so that it appears with the 1000\'s separator (,), but also without decimal places and without a leading 0.
My attempts s
Try this:-
String.Format("{0:n0}",5000) // 5,000 String.Format("{0:n0}",5) // 5 String.Format("{0:n0}",0) // 0