---
name: "sqrt"
type: command
status: ok
groups: ["Math"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/sqrt
revid: 369402
updated: 2024-09-03T18:43:22Z
---

# sqrt

*Command · Math · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

## Description

Returns square root of x.

## Syntax

```sqf
sqrt x
```

**Parameters:**

- `x`: [Number](../topics/Number.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
private _squareRoot = sqrt 9;  // returns 3
```

## See also

Math Commands · a %5E b

<sub>Source: [BI Community Wiki — sqrt](https://community.bistudio.com/wiki/sqrt) (revision 369402).</sub>
