Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

sqrt

Description

Square root

Syntax

sqrt ( float $arg ) : float

Parameters

arg

The argument to process

Return

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

Examples

1

<?

$arg = 9;

$return = sqrt($arg);

echo $return;

?>
3

2

<?

$arg = -9;

$return = sqrt($arg);

echo $return;

?>
NAN
HomeMenu