# $sqrt

`$sqrt` operator helps you in calculating square root value in an expression. You can use this in any [<mark style="color:blue;">**Expression Object**</mark>](https://docs.cosmocloud.io/flow-builder/cql-cosmocloud-query-language/building-expressions).

## Syntax

```json
{
    "$sqrt":<value | expr>
}
```

### Properties

| Field            | Description                                                                                                                                                                                                                                                                          | Required |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- |
| \<value \| expr> | <p>The <code>\<value></code> is any valid number.</p><p>The <code>\<expr></code> expression can be any valid <a href=""><mark style="color:blue;"><strong>expression</strong></mark></a> as long as it resolves to a number.</p><p></p><p>It can also be a Magical Autocomplete.</p> | true     |

### Returns

`float` - The result of $ceil operation

## Examples

### Basic example

```json
{
    "$sqrt": 4
}
```

The above expression returns **2**

### With Nested Expressions

```json
{
    "$sqrt": { "$multiply": [4, 4] }
}
```

The above expression calculates the nested expression, return **16** in its place and then the outer `$sqrt` expression returns **4** overall.

### With Magical Autocomplete

Let's say we have declared a variable `temp` in our API flow, which has a value of **64** currently.

```json
{
    "$sqrt":"$.variables.temp"
}
```

The above expression would resolve to a result of **8**
