---
name: "ln"
type: command
status: ok
groups: ["Math"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ln
revid: 369410
updated: 2024-09-03T18:43:25Z
---

# ln

*Command · Math · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

## Description

Returns the natural logarithm of x.

## Syntax

```sqf
ln x
```

**Parameters:**

- `x`: [Number](../topics/Number.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
_nlog = ln 10;
```

### Example 2

```sqf
_euler = exp 1;
_euler = ln _euler; // Returns 1
```

## See also

Math Commands

<sub>Source: [BI Community Wiki — ln](https://community.bistudio.com/wiki/ln) (revision 369410).</sub>
