- Reference >
- Operators >
- Aggregation Pipeline Operators >
- $sqrt (aggregation)
$sqrt (aggregation)¶
On this page
Definition¶
-
$sqrt
¶ New in version 3.2.
Calculates the square root of a positive number and returns the result as a double.
$sqrt
has the following syntax:The argument can be any valid expression as long as it resolves to a non-negative number. For more information on expressions, see Expressions.