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

```
FLOAT math.log(FLOAT x)
```

**Available in:** all subroutines

Computes the natural logarithm (base e log) of the input `x`.

## Example

```vcl
sub vcl_deliver {
  declare local var.foo FLOAT;
  set var.foo = math.log(32); # result: 3.466...
}
```
