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:###.000E-00}",  3.1415533E+04);
        Console.WriteLine("{0:#.0000000E+000}",  2.553939939E+101);
        }
}
    
   
  
   



Output

314.155E02
2.5539399E+101


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Number format