To declare a variable of type double, use a statement similar to that shown here:
double result;
using System; class MyConsts { public const double PI = 3.1416; } class MainClass { static void Main() { Console.WriteLine ("pi = {0}", MyConsts.PI); } }
pi = 3.1416