Home > PHP > Function > Math > sqrt()

sqrt()

sqrt - Square root

Syntax

float sqrt (float $arg)

Arguments

  • arg - The argument to process

Description

Returns the square root of arg.

Version

PHP 4, 5

Return value

The square root of arg or the special value NANfor negative numbers.