# Documentation/Calc Functions/SQRTPI

From The Document Foundation Wiki

TDF LibreOffice Document Liberation Project Community Blogs Weblate Nextcloud Redmine Ask LibreOffice Donate

## Function name:

SQRTPI

## Category:

Mathematical

## Summary:

Returns the square root of (PI times a number).

## Syntax:

SQRTPI(**Number**)

## Returns:

Returns a real non-negative number which is the positive square root of (PI multiplied by **Number**). The resultant value is between 0 and ∞, i.e. [0,∞).

## Arguments:

**Number** is a non-negative real number,or a reference to a cell containing that number by which pi is multiplied, further calculating the positive root.

If the **Number** is negative, the function returns an error value.

## Additional details:

- This is equivalent to SQRT(PI()*
**Number**) where PI() is a mathematical function whose value is nearly 3.141592653589793238 - The GIF below illustrates the SQRTPI function.

## Examples:

Formula | Description | Returns |
---|---|---|

=SQRTPI(2) | positive square root of 2*PI or 2*π | 2.506628274631 |

=SQRTPI(-2) | positive square root is not defined for negative number so the function returns an error value | Err:502 |

## Related LibreOffice functions:

## ODF standard:

## Equivalent Excel function:

SQRTPI