In C#, Exp() is a Math class method which is used to return the e raised to the specified power. Here e is a mathematical constant whose value is approximately 2.71828. Exp() is the inverse of Log().
public static double Exp (double num);
num: It is the required number of type System.Double which specifies a power.
Return Type: It returns a number e raised to the power num of type System.Double.
- If num is equal to NaN then the return value will be NaN.
- If num is equal to PositiveInfinity then the return value will be Infinity.
- If num is equal to NegativeInfinity then the return value will be 0.
22026.4657948067 5780495.71030692 9.54496417945595E+229 1
NaN Infinity 0
- Difference between Method Overriding and Method Hiding in C#
- Stack.Pop() Method in C#
- C# | Join Method | Set - 2
- Stack.Contains() Method in C#
- TimeSpan.Add() Method in C#
- C# | Math.Min() Method
- C# | Uri.GetHashCode() Method
- C# | Copy() Method
- C# | Math.Max() Method
- C# | ToUpper() Method
- C# | ToLower() Method
- Extension Method in C#
- C# | Uri.IsHexDigit() Method
- C# | Uri.IsBaseOf(Uri) Method
- C# | IsNullOrEmpty() Method
- C# | Random.Next() Method
- Main Method in C#
- C# | Uri.ToString() Method
- C# | Uri.IsWellFormedOriginalString() Method
- C# | CopyTo() Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.