(PHP 4, PHP 5)
bcsqrt — Get the square root of an arbitrary precision number
Return the square root of the operand .
The operand, as a string.
Този незадължителен параметър се използва за да се установи броя на цифрите след десетичната точка в резултата. Също така може да установите глобалния scale по подразбиране за всички функции, като използвате bcscale().
Returns the square root as a string, or NULL if operand is negative.
Example #1 bcsqrt() example
<?php
echo bcsqrt('2', 3); // 1.414
?>