# Exp(float)

> Returns the result of raising euler's number (e) to the power power.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static float Exp(float power)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Exponent of the exponentiation operation.

### Returns

| Type                                                          | Description                             |
| ------------------------------------------------------------- | --------------------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | Result of the exponentiation operation. |

### Remarks

The result of this function is the same as the result of 'Mathf.Pow(e, power)', with e being Euler's number (2.718282).

Additional Resources: [Mathf.Pow](/engine/6000.6/script-reference/unityengine/mathf/pow.md).

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        // Prints Infinity
        Debug.Log(Mathf.Exp(Mathf.Infinity));
        // Prints 2.718282
        Debug.Log(Mathf.Exp(1));
        // Prints 1
        Debug.Log(Mathf.Exp(0));
        // Prints 0
        Debug.Log(Mathf.Exp(-Mathf.Infinity));
    }
}
```
