What does the sqrt function mean?
Function: Find the square root of the parameters.
Related recommendations: "FAQ"
Syntax:
sqrt(X)
Parameters: X represents the number for finding the square root.
Description: Return the result of the square root of parameter X.
php sqrt() function usage example:
<?php $i = 9; $i = sqrt($i); $j = 8; $j = sqrt($j); $k = -5; $k = sqrt($k); echo $i."*****".$j."*****".$k; ?>
Output:
3*****2.8284271247462*****NAN
The above is the detailed content of What does sqrt function mean?. For more information, please follow other related articles on the PHP Chinese website!