---
schema_version: "1"
id: 18893f058fddfed54440821749b9369e841584d7a3110708ffec9c2c7b900339
title: sqrt(n)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_saql/guides/reference/bi-saql-functions-math-sqrt.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-saql/guide/bi-saql-functions-math-sqrt.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1fa65e8433708a0949511d9d25936934f6df51f8b3cb2a169c0f8c5e3055493f
products:
  - Analytics SAQL Developer Guide
  - analytics
---

# sqrt(n)

Returns the square root of a number _n_. The value _n_ can be any non-negative numeric value in the range of 0 \<= _n_ \<= 1e308. This function can only be used in a `foreach` statement.

## Example

```nolang
q = foreach q generate sqrt(value) as value;
q = filter q by sqrt(value) < 10;
```
