---
schema_version: "1"
id: 357397bb178ab3d12d097250b123265ed950c7e0ad9a633a7e499835bb49b72f
title: log10({n})
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_sql/guides/bi-sql-math-log10.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-math-log10.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5c7cc3ed6d2cdb90493b57d1c4631ac4cab27ec296199c2fae68dc8e23787262
products:
  - SQL for Analytics Developer Guide
  - analytics
---

# log10({n})

Returns the base 10 logarithm of a number _n_. The value _n_ can be any positive, non-zero numeric value in the range 0 \< _n_ \<= 1.797e308.

`log10({n})` takes the following syntax.

```nolang
SELECT log10(NUMERIC_VALUE) as ALIASNAME
FROM DATASET;
```

## Example

This example returns the base 10 logarithm for the number 5.

```nolang
SELECT log10(5) as logExample FROM Superstore
LIMIT 1;
```

| logExample |
| ---------- |
| 0.698      |
