Scale the value by 1000 : Double Format : Data Type C# Examples


C# Examples » Data Type » Double Format »

 

Scale the value by 1000









    
using  System;    

class  MainClass  {    
    public  static  void  Main()  {    
        double  num  =  64354.2345;  

        Console.WriteLine("Default  format:  "  +  num);  

        Console.WriteLine("Value  in  1,000s:  "  +  
                                            "{0:#0,}",  num);  
    }  
}
    
   
  
   



Output

Default format: 64354.2345
Value in 1,000s: 64


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Double Format