PHP 4, PHP 5, PHP 7, PHP 8
sqrt - Square root

sqrt( float$num ): float

Returns the square root of num.



The argument to process

Return Values

The square root of num or the special value NAN for negative numbers.

Related Functions

Example of sqrt

Show all examples for sqrt

PHP Version:

Function sqrt:

Mathematical Functions Functions

Most used PHP functions