Custom Numeric Formatting : Number format : Data Type C# Examples


C# Examples » Data Type » Number format »

 

Custom Numeric Formatting









    
using  System;

class  MainClass
{
        public  static  void  Main()
        {
                Console.WriteLine("{0:##,###}",  2555634323);
                Console.WriteLine("{0:##,000.000}",  14563553.593993);
                Console.WriteLine("{0:#,#.000}",  14563553.593993);
        }
}
    
   
  
   



Output

2,555,634,323
14,563,553.594
14,563,553.594


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Number format