← All built-ins / sqrt()

sqrt()

sqrt(mixed $number): float

Parameters

NameTypeDescription
$numberfloat|intnon-negative input

Return value

Square root as float.

Example

echo sqrt(16), " ", round(sqrt(2), 5);
4 1.41421

See also

pow()hypot()