Automatic conversion from long to double : Data Type Cast : Data Type C# Examples


C# Examples » Data Type » Data Type Cast »

 

Automatic conversion from long to double









    
using  System;  
  
class  Example  {        
    public  static  void  Main()  {        
        long  L;  
        double  D;  
      
        L  =  100123285L;  
        D  =  L;  
      
        Console.WriteLine("L  and  D:  "  +  L  +  "  "  +  D);  
    }        
}
    
   
  
   



Output

L and D: 100123285 100123285


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Data Type Cast