Double
using System;
/* A double value represents 64-bit double-precision floating point type */
public class DoubleExample
{
static void Main(String[] args)
{
double x = 1.234, y = 1.5;
Console.WriteLine(x.GetType());
Console.WriteLine(typeof(double));
Console.WriteLine(double.MinValue);
Console.WriteLine(double.MaxValue);
double z = x + y;
Console.WriteLine("Sum = " + z);
Console.ReadLine();
}
}
Output:
System.Double
System.Double
-1.79769313486232E+308
1.79769313486232E+308
Sum = 2.734