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

# 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 ]
```
