Square root

library operator
ID: 6ea575c8-b387-4b80-a977-3675678d0270
Calculates square root of a number.

Behavior

Test data showing the behavior of Square root

Square numbers

It returns the square root for square numbers.

Input Output
9 3
25 5
10000 100
Negative numbers

It returns null for negative numbers.

Input Output
-9 null
-1 null
Other numbers

It returns the square root for other numbers.

Input Output
33.64 5.8
69.8896 8.36
Zero and null

It returns 0 for 0 and null for null.

Input Output
0 0
null null

Implementation

The implementation of Square root makes use of the following 1 operators.

1
Evaluates an expression.