---
title: "ln"
canonical: "https://support.appfire.com/space/PSJ/15489461/ln"
format: markdown
---
> Macro (aura-html)


> ℹ️ **Availability**
> ℹ️ 
> ℹ️ This function is available starting with <span style="color: #091e42">**SIL Engine™**</span>** 2.5.**

  


## Syntax

**<span style="color: #3366ff">ln(number)</span>**

## Description

> Macro (excerpt)
> 
> <span style="color: #000000">Returns the natural logarithm of a number. </span>

<span style="color: #000000">Natural logarithms are based on the constant e (2.71828182845904).</span>

## <span style="color: #bd5528">Parameters</span>

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| number | Number | Yes | The positive real number you want the natural logarithm for. |

## Return type

**<span style="color: #000000">number</span>**

  


## <span style="color: #bd5528">Example</span>

```
number a = ln(86);
print("a= " + a);
number b = ln(exp(4));
print("b= " + b);
```

<span style="color: #000000">Prints: </span>

<span style="color: #000000">        a= 4.454347;</span>

<span style="color: #000000">        b= 4;</span>

  


## <span style="color: #bd5528">See also</span>

> Macro (contentbylabel)