bcsqrt
(PHP 4, PHP 5)
bcsqrt — دریافت ریشه عدد با دقت دلخواه
Description
string bcsqrt
( string $operand
[, int $scale
] )
بازگرداندن ریشه operand.
Parameters
- operand
-
عملوند به عنوان رشته.
- 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().
Return Values
بازگرداندن ریشه به عنوان رشته یا NULL اگر operand منفی باشد.
Examples
Example #1 مثال bcsqrt()
<?php
echo bcsqrt('2', 3); // 1.414
?>
There are no user contributed notes for this page.
