---
schema_version: "1"
id: 3eed541d930d65e8b008f9115213d9c62a85ae813fa19ec5f160784669815612
title: LOG
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_log.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_log.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a18a78ecdbcaa82527e16d719824801c56bc496eb1b02ca2b65b2607aa24dec8
description: Returns the base 10 logarithm of a number.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# LOG

Returns the base 10 logarithm of a number.

## Use

`LOG(number)` and replace number with the field or expression from which you want the base 10 logarithm calculated.

![Salary Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Salary Example

`LOG(Salary__c)` calculates the logarithm of a person’s salary. In this example, Salary is a custom currency field.

![Hydrogen Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Hydrogen Example

`-LOG(Hydrogen__c)` calculates the pH and acidity using the LOG function and a custom number field called Hydrogen, which represents the concentration of Hydrogen ions in the liquid measured in moles per liter.