# SQRTPI

**The function SQRTPI takes a Number, multiples it by pi, and outputs the square root of the resulting product.**

This function takes a [Number](../../variable-data-types/the-number-variable-data-type) as input. It outputs another Number: the square root of the given number multiplied by pi.

#### Declaration

```javascript
SQRTPI(n) -> number
```

&#x20;

#### Parameters

**n** (required, type: _Number_) Any number.&#x20;

#### Return Values

**number** (type: _Number_) The square root of **n** multiplied by pi. Mathematically, this can be written as _√(nπ)_.

#### Examples

The following example takes the Number 2 as input, multiplies it by pi, and outputs the square root of the resulting product:

```javascript
SQRTPI(2) -> 2.5066282746310002
```

The following example takes the result of the function [PI](pi) (itself the mathematical constant pi), multiplies it by pi, and outputs the square root of the resulting product (pi squared):

```javascript
SQRTPI(PI()) -> 3.141592653589793
```
