using System;
class FloatingPointNumbers
{
static void Main()
{
decimal a = 3.141592653589793238M;
double b = 1.60217657;
decimal c = 7.8184261974584555216535342341M;
Console.WriteLine("{0}\n{1}\n{2}", a, b, c);
}
}
Be careful as float (32-bits) - shows 7 numbers;
double (64-bits) shows 15-16 numbers;
the biggest is decimal (128-bit) - 28 to 29 numbers