← All built-ins / sqrt()
sqrt()
sqrt(mixed $number): float
Parameters
| Name | Type | Description |
|---|---|---|
| $number | float|int | non-negative input |
Return value
Square root as float.
Example
echo sqrt(16), " ", round(sqrt(2), 5);
4 1.41421
| Name | Type | Description |
|---|---|---|
| $number | float|int | non-negative input |
Square root as float.
echo sqrt(16), " ", round(sqrt(2), 5);
4 1.41421