---
schema_version: "1"
id: 9c275795a918ba5554f26ea19abebd99f3c3206b5b00397c959a67b2f9da04ae
title: ln
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/spiff_function_ref_ln.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_ln.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d7acd6cc3a228f1d8e108f2c5632f05be5ceb4da23dbaf1b7f2975a5ae9afb43
description: Returns the natural logarithm of a specified number in Salesforce Spiff. The natural logarithm is based on the mathematical constant e, the value of which is approximately 2.72.
products:
  - Sales Cloud
  - Sales Enablement
release: "264"
---
# ln

Returns the natural logarithm of a specified number in Salesforce Spiff. The natural logarithm is based on the mathematical constant `e`, the value of which is approximately 2.72.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available for an additional cost in: <strong>Professional</strong> Edition with Web Services API Enabled</td></tr></tbody></table>

## Syntax

```
ln(number)
```

## Arguments

  
| Argument | Required? | Description |
| --- | --- | --- |
| number | Required | Any number or number field value, including numbers formatted as currency. |