---
title: math.exp
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/math-logexp/math-exp
---

```
FLOAT math.exp(FLOAT x)
```

**Available in:** all subroutines

Computes the value of e raised to the `x` power.

## Example

```vcl
sub vcl_deliver {
  declare local var.foo FLOAT;
  set var.foo = math.exp(1); # result: 2.718...
}
```
