Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: bcsqrt - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

bcsub" width="11" height="7"/> <bcscale
Last updated: Fri, 29 Aug 2008

view this page in

bcsqrt

(PHP 4, PHP 5)

bcsqrt任意精度数値の平方根を取得する

説明

string bcsqrt ( string $operand [, int $scale ] )

operand の平方根を返します。

パラメータ

operand

オペランドを表す文字列。

scale

このオプションパラメータを使用して、 結果の小数点以下の桁数を指定します。すべての関数で使用するデフォルトのスケールを定義するには bcscale() を使用します。

返り値

平方根を文字列で返します。 operand が負の場合は NULL を返します。

例1 bcsqrt() の例

<?php

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

?>

参考



add a note add a note User Contributed Notes
bcsqrt
There are no user contributed notes for this page.

bcsub" width="11" height="7"/> <bcscale
Last updated: Fri, 29 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites