It returns the square root for square numbers.
Input | Output |
---|---|
9
|
3
|
25
|
5
|
10000
|
100
|
It returns null for negative numbers.
Input | Output |
---|---|
-9
|
null
|
-1
|
null
|
It returns the square root for other numbers.
Input | Output |
---|---|
33.64
|
5.8
|
69.8896
|
8.36
|
It returns 0 for 0 and null for null.
Input | Output |
---|---|
0
|
0
|
null
|
null
|