double base Fahrenheit and Celsius (Centigrade) Scales : Double Calculation : Data Type C# Examples


C# Examples » Data Type » Double Calculation »

 

double base Fahrenheit and Celsius (Centigrade) Scales









    
using  System;

public  class  MainClass  {
        public  static  void  Main(string[]  args)  {
                double  dFahr  =  123.123;

                double  dCelsius;
                dCelsius  =  (dFahr  -  32.0)  *  (5.0  /  9.0);

                Console.WriteLine("Temperature  in  degrees  Celsius  =  "  +  dCelsius);

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Double Calculation