---
schema_version: "1"
id: 57590e7ee6cc7841907e501619a2521fdcae4f4e22d9cb719fb8ca3b428d9a3d
title: sqrt
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.12/dw-core-functions-sqrt.md
canonical_url: https://docs.mulesoft.com/dataweave/2.12/dw-core-functions-sqrt
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 791ec5ea1d020836508a9b6c9eb7f3c13ad23449b30a9e3425ea2b70030d2a66
description: MuleSoft Documentation Site
release: "2.12"
latest: false
---
---
product: DataWeave
version: 2.12
---

# sqrt

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## sqrt(number: Number): Number

Returns the square root of a number.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>number</code></p></td><td><p>The number to evaluate.</p></td></tr></tbody></table>

### Example

This example returns the square root of a number.

#### Source

```DataWeave
%dw 2.0
output application/json
---
[ sqrt(4), sqrt(25), sqrt(100) ]
```

#### Output

```JSON
[ 2, 5, 10 ]
```
