bcsqrt

(PHP 4, PHP 5)

bcsqrt — Get the square root of an arbitrary precision number

Description string bcsqrt ( string $operand [, int $scale ] ) Return the square root of the operand Parameters

operand scalebcscale().

Return Values

Returns the square root as a string, or NULL if operand Examples

Example #1 bcsqrt() example

echo bcsqrt('2', 3); // 1.414

Смотрите также

  • bcpow() - Raise an arbitrary precision number to another



Описание на ru2.php.net
Описание на php.ru