bcsqrt
bcsqrt
Get the square root of an arbitrary precision number
string **bcsqrt** string $num $scale
Return the square root of .
num
numThe operand, as a well-formed BCMath numeric string.
Returns the square root as a well-formed BCMath numeric string.
This function throws a in the following cases:
ValueError``num``num``0``scale
Voorbeeld: example
<?php
echo bcsqrt('2', 3); // 1.414
?>
bcpow``BcMath\Number::sqrt