Query: bcsqrt
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BCSQRT(3) 1 BCSQRT(3) bcsqrt - Get the square root of an arbitrary precision numberSYNOPSISstring bcsqrt (string $operand, [int $scale])DESCRIPTIONReturn the square root of the $operand.PARAMETERSo $operand - The operand, as a string. o $ scale -This optional parameter is used to set the number of digits after the decimal place in the result. You can also set the global default scale for all functions by using bcscale(3).RETURN VALUESReturns the square root as a string, or NULL if $operand is negative.EXAMPLESExample #1 bcsqrt(3) example <?php echo bcsqrt('2', 3); // 1.414 ?>SEE ALSObcpow(3). PHP Documentation Group BCSQRT(3)
Related Man Pages |
---|
dc(1) - plan9 |
round(3) - php |
bcpowmod(3) - php |
variant_imp(3) - php |
variant_xor(3) - php |
Similar Topics in the Unix Linux Community |
---|
User Guide: Posting in the Emergency Forum |
New Code Tags (Syntax Highlighting) |
Please Welcome Don Cragun as Lead Moderator |
Please Welcome Ravinder Singh to the Moderation Team |