---
schema_version: "1"
id: 6b16ac9540b3b319da496bddb55537850ad596e0d0a45bce2c3bacaacc546020
title: pi()
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-pi.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-math-pi.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4f8a0aadd81729c7b80fa85745d43122f03b1e882671b99033bd04b1fa266385
products:
  - SQL for Analytics Developer Guide
  - analytics
---

# pi()

Returns the value of constant π, where π=3.14159.

`PI()` takes the following syntax.

```nolang
SELECT PI() as ALIAS
FROM DATASET;
```

## Example

```nolang
SELECT PI() as piValue
FROM "Opportunity"
LIMIT 1;
```

| piValue |
| ------- |
| 3.14159 |
