sqrt
Description
Syntax
sqrt(
float $num
): floatParameters
num
The argument to process.
Return
Returns the square root of num or the special value NAN for negative numbers.
Examples
1 · negative
<? $num = -9; $return = sqrt($num); echo $return;
NAN
2 · positive
<? $num = 9; $return = sqrt($num); echo $return;
3