add commas using String.Format for number and
        Posted  
        
            by raklos
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by raklos
        
        
        
        Published on 2010-03-30T13:41:36Z
        Indexed on 
            2010/03/30
            13:53 UTC
        
        
        Read the original article
        Hit count: 268
        
c#
Using String.Format how can i ensure all numbers have commas after every 3 digits eg 23000 = "23,000" and that 0 returns "0".
String.Format("{0:n}", 0); //gives 0.00 which i dont want. I dont want any decimal places, all numbers will be integers.
© Stack Overflow or respective owner