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:E}",  33345.8977);
                Console.WriteLine("{0:E10}",  33345.8977);
                Console.WriteLine("{0:e4}",  33345.8977);
        }
}
    
   
  
   



Output

3.334590E+004
3.3345897700E+004
3.3346e+004


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Number format