bcsqrt(3) php man page | unix.com

Man Page: bcsqrt

Operating Environment: php

Section: 3

BCSQRT(3)								 1								 BCSQRT(3)

bcsqrt - Get the square root of an arbitrary precision number

SYNOPSIS
string bcsqrt (string $operand, [int $scale])
DESCRIPTION
Return the square root of the $operand.
PARAMETERS
o $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 VALUES
Returns the square root as a string, or NULL if $operand is negative.
EXAMPLES
Example #1 bcsqrt(3) example <?php echo bcsqrt('2', 3); // 1.414 ?>
SEE ALSO
bcpow(3). PHP Documentation Group BCSQRT(3)
Related Man Pages
dc(1) - plan9
variant_mod(3) - php
variant_or(3) - php
variant_sub(3) - php
variant_xor(3) - php
Similar Topics in the Unix Linux Community
User Guide: Posting in the Emergency Forum
Rules for Homework &amp; Coursework Questions Forum
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Nicki Paul to the Moderator Team!