Numeric Formatting : Number format : Data Type C# Examples


C# Examples » Data Type » Number format »

 

Numeric Formatting









    
using  System;

class  MainClass
{
        public  static  void  Main()
        {
                Console.WriteLine("{0:D}",  123455);
                Console.WriteLine("{0:D7}",  543111);
        }
}
    
   
  
   



Output

123455
0543111


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Number format