September 2001
Intermediate to advanced
768 pages
32h 45m
English
float sqrt(float num) Returns the square root of the given argument.
Returns:
Square root of a number; NAN for negative values
Description:
sqrt() returns the square root of a number. This function returns the string NAN (for Not a Number) when given a negative value in num .
Version:
PHP 3, PHP 4
See also:
pow()
Example:
$org = 25; echo "The square root of $org is ", sqrt($org); |
Read now
Unlock full access