# LOG

The LOG function returns the logarithm of a number to the base you specify.

### Syntax

LOG(value, base) - > number

### Arguments

<table><thead><tr><th width="178.33333333333331">Arguments</th><th width="213">Datatype</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Number, Node reference</td><td>The positive real number for which you want to derive the logarithm.</td></tr><tr><td>base</td><td>Number, Node reference</td><td>The base of the logarithm.</td></tr></tbody></table>

### Example

Consider the below scenario where we have values and base for four periods. The objective is to derive the LOG of those values.

<table><thead><tr><th width="136">Period</th><th width="118" align="center">1</th><th width="117" align="center">2</th><th width="125" align="center">3</th><th align="center">4</th></tr></thead><tbody><tr><td><mark style="color:purple;">value</mark></td><td align="center">30</td><td align="center">40</td><td align="center">35</td><td align="center">50</td></tr><tr><td><mark style="color:orange;">base</mark></td><td align="center">5</td><td align="center">4</td><td align="center">3</td><td align="center">6</td></tr></tbody></table>

&#x20;To achieve this, the following formula should be written in the \[LOG] node:

<mark style="color:blue;">**`LOG`**</mark>**`(`**<mark style="color:purple;">**`[value]`**</mark>**` ``,`` `**<mark style="color:orange;">**`[base]`**</mark>**`)`**

### Result

| LOG | 2.113282753 | 2.660964 | 3.2362173 | 2.1833416 |
| --- | ----------- | -------- | --------- | --------- |
