You are here : phpmathsqrt

sqrt() - math

Returns the square root of arg.
Parameters :
  • arg - The argument to process

  • Syntax

    float sqrt
         ( float $arg
        )


    Example

    <?php// Precision depends on your precision directiveecho sqrt(9); // 3echo sqrt(10); // 3.16227766 ...?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference