# sqrt() function

The sqrt() function calculates the square
root of a given numeric expression.

## Syntax

```
sqrt(num.exp)
```

## Parameter(s)

| num.exp | Numeric expression from which the square root is calculated. If num.exp is negative, the function returns 0 and prints an error message. |
| --- | --- |

## Description

Precision is kept for up to
9 digits.

## Example(s)

```
print sqrt(25)
```

## See also

- [BASIC functions](https://d3codex.com/pickbasic-flashbasic/basic-functions/)
- [Numeric expressions](https://d3codex.com/pickbasic-flashbasic/numeric-expressions/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)

---
Source: https://d3codex.com/pickbasic-flashbasic/sqrt-function/ - part of the D3Codex reference.
