Home > PHP > Function > GMP > gmp_sqrt()

gmp_sqrt()

gmp_sqrt - Calculate square root

Syntax

resource gmp_sqrt (resource $a)

Arguments

  • a - It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.

Description

Calculates square root of a.

Version

PHP 4.0.4, 5

Return value

The integer portion of the square root, as a GMP number.