Note This program is not useful, but it does use the constant e. And it shows the number of digits.
Math.E in mscorlib:
Discussion. Are there any practical usages of Math.E in C# programs that would be satisfied by this constant? The E constant in mathematics is used primarily for limits and derivatives.
But In programs demanding these mathematical methods, you would likely use an external numerical library rather than access Math.E.
C# program that uses Math.E
static void Main()
double e = Math.E; // Get E constant
Console.WriteLine("--- Math.E ---");
Console.WriteLine(e); // Write E constant
}--- Math.E ---
A summary. We looked at the Math.E public double field. This field unfortunately does not contain enough significant digits for more demanding scientific applications or even puzzles.